Why would Hierarchy selection impact game behavior?
I'm finding that selecting different objects in the Hierarchy impacts the behavior in my game.
When I have my "Spaceship" selected in the Hierarchy, it is much slower to launch. When I select any object in the Hierarchy other than the "Spaceship" game object it launches at its normal speed.
It was previously working as expected, I have since added a Particle System and Audio Source. Toggling these off does not make a difference. I'm using Unity physics.
Why would object selection in the Hierarchy make any difference like this?
Any help is appreciated!
Answer by IgnitedGames · May 09, 2020 at 03:05 AM
Purely speculation, but Unity may be lagging trying to update the inspector view every time a variable changes or something or rather on big GameObjects with a lot of stuff visible in the inspector. You can hide public variables you don't need to see from the inspector by putting [HideInInspector]
in the line above it, but I don't know how Unity works so this may not make a difference.
Your answer
Follow this Question
Related Questions
Unity forbidden deletion when selection.activegameobject is particular type 0 Answers
Does activating a parent activates children (MB's Awake()) 1 Answer
New Hierarchy Son Script 0 Answers
image hierarchy issue in UGUI 1 Answer
How can I select whole object with it's childrens in hierarchy? 1 Answer