|
Name | Description |
---|---|
type | Type of the class to match while searching. |
Object[] - An array of objects whose class is type or is derived from type.
Returns a list of all objects of Type type.
This function can return any type of Unity object that is loaded, including game objects, prefabs, materials, meshes, textures, etc. It will also list internal stuff, therefore please be extra careful the way you handle the returned objects. Contrary to Object.FindObjectsOfType this function will also list disabled objects.
Please note that this function is very slow and is not recommended to be used every frame.