- Home /
Cannot add script to Game Manager Object
I was following the Unity3D Breakout game tutorial and everytime I try to add my game manager script, the object disappears from the hierarchy. The script name is the same as the game object.
I don't know the tutorial, but does your script make use of ExecuteInEdit$$anonymous$$ode? If so, does it have any destroy or hide flags setting in there? first time I hear from scripts making it's attachee disappear
Answer by Sharpless512 · Sep 05, 2015 at 03:13 PM
Make sure you don't drag your script into the hierachy while you are on PLAY mode
Your answer
Follow this Question
Related Questions
In the breakout tutorial,why does the paddle movement use Update() instead of FixedUpdate()? 1 Answer
How to punch a ball without loosing its momentum? 3 Answers
Help with respawning paddle and ball in Breakout 3D,Respawning a paddle and ball in Breakout game 0 Answers
Turials that work with Unity 3.4 0 Answers