- Home /
Space Shooter Shot Issues,Space Shooter Bolt Issues
Well because I had to login I had to retype everything so long issue short, triple checked my code (no idea what's going on) once all shots are fired the bolt prefab disappears from the script... And upon firing multiple bolts each new bolt appeared as "Bolt (Clone)" with another addition of "(Clone)" on each additional shot, They were still disappearing from the hierarchy as is with the boundary destroy.,Like many of the issues before I've checked my code over and over and I don't know what my issue is, and one that I haven't seen is that on the hierarchy each "Bolt" shot will come up but each subsequent shot will show up with additional "(Clone)" attached to the name, not sure what i'm doing wrong but im at my wit's end for now.
MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. UnityEngine.Object.Instantiate[GameObject] (UnityEngine.GameObject original) (at C:/buildslave/unity/build/Runtime/Export/UnityEngineObject.cs:200) PlayerController.Update () (at Assets/Scripts/PlayerController.cs:28)
Having "(Clone)" after the name of instantiated object is normal.
You must be referencing from a prefab in the scene, not on the project folder.
Your answer
Follow this Question
Related Questions
Tron type Game Question 1 Answer
How can I make my 2D sprite move in the direction of the most recent key pressed? 1 Answer
My sprites wont change? 0 Answers
Slowly increase motor.force 1 Answer
Need help fixing my script 1 Answer