- Home /
Question by
patnaoum · Oct 28, 2021 at 01:38 AM ·
parentchildrenontriggerexit
Disabling the Parent fires an OnTriggerExit with Children
Ok so I've got a Parent object that is scripted to disable when the player moves too far away from it. But as it is disabled Child-A seems to disappear before Child-B, causing Child-B's OnTriggerExit to fire. Now I guess this probably isn't so bad, except I keep getting the error: "Coroutine couldn't be started because the the game object 'Child-B' is inactive!"
So is there anyway to stop this? Or can I just leave the error?
Comment
Your answer