Can't Activate a GameObject from Array

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.

Good day.
What is “w” ? a object? a component of an object?

enable is for components, to active/desactive a whole gameobject needs to use SetActive

w[n].SetActive(true);

Bye!