#GetComponentInChildren checks itself
1 messages · Page 1 of 1 (latest)
There's one object in the scene and it's colliders aren't disabling or his children. I've even tried passing the object through a direct reference like in the image. It's still not getting disabled
This was my other approach and it doesn't work either
all of those things will work axcept GetComponentInChildren which will disable your own collider
assuming your code is actually running of course
YOu may be dragging and dropping the wrong object in
or something to that effect
I hear you and I understand you but I can assure you that is not the case. There is only one object in the scene called HitBox and its the child of the only parent object that runs this script and it doesn't work.
Oh you have an animator
that's likely an issue too
disable the animator for a minute
Now it works and I'm extremly confused 🥲
your animator is overriding everything
Thank you for the help. This is new to me. The animation only has the Sprite in it though. How can this be happening?