I cannot activate a GameObject that is a child of my player. The object is an empty GameObject called “Weapon,” and it itself has a child GameObject which is a sprite. I can activate and de-activate the child GameObject in the Inspector when the game is not playing, but once I hit play the item remains de-activated and I cannot activate it in the Inspector.
I also cannot activate the game object with code. I use the SetActive method, and I even have a print statement after that verifies that the code ran, but the item will still not activate.
I then took away all code associated with that GameObject aside from a [SerializeField] reference to it in a script. Still, will not activate.
I have a gif below showing this behavior. Thanks!