作业帮 > 综合 > 作业

unity 对象引用没有设置为对象的一个实例

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/06/05 10:24:21
unity 对象引用没有设置为对象的一个实例
NullReferenceException:Object reference not set to an instance of an object
Npc.OnGUI () (at Assets/Script/Npc.cs:73)
There are 2 audio listeners in the scene.Please ensure there is always exactly one audio listener in the scene.
NullReferenceException:Object reference not set to an instance of an object
Script_08_16.Update () (at Assets/Script/Script_08_16.cs:24)
本人菜鸟,
There are 2 audio listeners in the scene.Please ensure there is always exactly one audio listener in the scene.
表示你场景中有2个相机,并且有2个耳朵,这样系统无法确定将音频声音传递给哪个.你应该确保场景中,同时只有一个耳朵存在.(Audio Listenner)
NullReferenceException:Object reference not set to an instance of an object
是你在使用某具体对象的时候,该对象的值为空.请检查赋值
再问: 我赋值了,可是错误还是一样,,,
再答: 代码发上来瞅一眼