unity 对象引用没有设置为对象的一个实例NullReferenceException:Object reference not set to an instance of an objectNpc.OnGUI () (at Assets/Script/Npc.cs:73)There are 2 audio listeners in the scene.Please ensure there is always exactly o
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/02 02:32:02
![unity 对象引用没有设置为对象的一个实例NullReferenceException:Object reference not set to an instance of an objectNpc.OnGUI () (at Assets/Script/Npc.cs:73)There are 2 audio listeners in the scene.Please ensure there is always exactly o](/uploads/image/z/15162280-16-0.jpg?t=unity+%E5%AF%B9%E8%B1%A1%E5%BC%95%E7%94%A8%E6%B2%A1%E6%9C%89%E8%AE%BE%E7%BD%AE%E4%B8%BA%E5%AF%B9%E8%B1%A1%E7%9A%84%E4%B8%80%E4%B8%AA%E5%AE%9E%E4%BE%8BNullReferenceException%3AObject+reference+not+set+to+an+instance+of+an+objectNpc.OnGUI+%28%29+%28at+Assets%2FScript%2FNpc.cs%3A73%29There+are+2+audio+listeners+in+the+scene.Please+ensure+there+is+always+exactly+o)
unity 对象引用没有设置为对象的一个实例NullReferenceException:Object reference not set to an instance of an objectNpc.OnGUI () (at Assets/Script/Npc.cs:73)There are 2 audio listeners in the scene.Please ensure there is always exactly o
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)
本人菜鸟,
unity 对象引用没有设置为对象的一个实例NullReferenceException:Object reference not set to an instance of an objectNpc.OnGUI () (at Assets/Script/Npc.cs:73)There are 2 audio listeners in the scene.Please ensure there is always exactly o
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
是你在使用某具体对象的时候,该对象的值为空.请检查赋值