Check out example codes for "get all the game objects in a scene unity". It will help you in understanding the concepts better.

Code Example 1

Resources.FindObjectsOfTypeAll(typeof(urFavClass));

Learn ReactJs, React Native from akashmittal.com