how to get all gameobjects in scene unity code example
Example 1: get all the game objects in a scene unity
Resources.FindObjectsOfTypeAll(typeof(urFavClass));
Example 2: unity get all gameobjects
//Get's all gameobjects and puts it in a list called "GameobjectList"
Object[] GameobjectList = Resources.FindObjectsOfTypeAll(typeof(GameObject));