Hello,
I’m having major difficulty activating a GameObject from an array.
Code:
if (Input.GetKeyDown(KeyCode.V))
{
n++;
w[n].enabled = true;
Debug.Log(w[n].name);
}
The debug statement knows the name of the object, but never enables it.
Any help is appreciated. Thanks!
EDIT #1:
I’ve added a Debug statement to check the status of the GameObject, it’s returning true, but it’s definitely not active in the inspector or in the game view.