- Home /
Unity disabling my gameobjects on startup
Every time I load my scene, there are a few specific GameObjects that are inexplicably disabled. Unusually, the Inspector view tickbox shows as enabled, (although both the icon and the name in hierarchy show as disabled).
If I hit play, Unity crashes.
I can avoid the crash by unticking the tickbox in the inspector (after which the item appears to be truly disabled) and then ticking it again.
Does anyone have any idea what's going on? Thank you very much.
Everything i can say is: $$anonymous$$ake a ticket. Your question is kinda vague
Answer by IgorAherne · Apr 13, 2017 at 06:09 PM
Something is wrong with the scripts which are attached to that gameObject.
Try disabling components one by one, to find out which ones are causing the trouble. Once identified, comment out parts of code in those monobehavior, drill down to the error
This worked! Thank you.
I don't know why I didn't think of trying this. I guess I figured the scripts are fine, because as far as I can tell, everything works absolutely fine once I re-enable them.