Getting all objects with a tag and inserting them into an array of gameobject

Hi! I am trying to get all the objects with the tag “Movable” from the scene and inserting them into an array of Gameobjects. i have looked over examples from documentation but it does not seem to be working. Here is my code:

public GameObject[] MovableObjects;

void Start()
{
  MovableObjects = Gameobject.FindGameObjectsWithTag("Movable");
  foreach(GameObject objects in MovableObjects)
  {
    Debug.Log(objects);
  }
}

I do not see anything in the console so clearly MovableObjects is empty.What am i doing wrong?

When you are performing your FindGameObjectsWithTag in your script are your movable objects active? If they are not active then they won’t be found.