这个错误的意思是在GenshinTextToSpeech脚本的Awake方法中,GetComponent方法要求请求的组件'GenshinSettings'必须派生自MonoBehaviour或Component,或者是一个接口。但是GenshinSettings是一个ScriptableObject,不是一个MonoBehaviour或Component。

要解决这个问题,你可以将GenshinSettings类改为继承自MonoBehaviour或Component,或者将GenshinTextToSpeech中的GetComponent方法的调用删除或注释掉(如果不需要使用GenshinSettings组件的话)。

GenshinTextToSpeech:using System;using SystemCollections;using SystemXmlLinq;using UnityEngine;using UnityEngineNetworking;public class GenshinTextToSpeech TTS #region 参数定义 summary Genshin

原文地址: https://www.cveoy.top/t/topic/i9ww 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录