- Home /
Hack And Slash Tutorial - Character Generator [Errors]
I have two recurring errors from Character Generator Script:
ArgumentException: The prefab you want to instantiate is null. UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) (at C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/Editor/UnityEngineObject.cs:103) UnityEngine.Object.Instantiate (UnityEngine.Object original, Vector3 position, Quaternion rotation) (at C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/Editor/UnityEngineObject.cs:81) PC.get_Instance () (at Assets/Scripts/Character/PC.cs:20) CharacterGenerator.Start () (at Assets/Scripts/Character/CharacterGenerator.cs:54)
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
Screenshot: http://www.iv.pl/images/80995435511232635236.png
Perhaps you haven't assigned the preFab to the variable in the code / inspector?
There might be different reasons for that. How about posting the onGUI code?
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
BurgZergArcade tutorial 20 errors? 0 Answers
Help!Error CS0266 0 Answers
Can you help with my errors? All are similar... 1 Answer
Runtime Error 1 Answer