Class GameObjectUtils
Utility methods for creating GameObjects.
Allows systems to subscribe to Game
Inherited Members
Namespace: Unity.XR.CoreUtils
Assembly: solution.dll
Syntax
public static class GameObjectUtils
Methods
Name | Description |
---|---|
Clone |
Clones the Prefab Game Object |
Clone |
Clones the Game Object |
Create() | Creates a new GameObject and returns it.
This method also calls Game |
Create(string) | Creates a new GameObject and returns it.
This method also calls Game |
Exhaustive |
Searches for a component in a scene with a 3 step process, getting more comprehensive with each step At edit time will find all objects in the scene, even if they are disabled At play time, will be unable to find disabled objects that are not a child of desiredSource |
Exhaustive |
Searches for a component in a scene with a 3 step process, getting more comprehensive with each step At edit time will find all objects in the scene, even if they are disabled At play time, will be unable to find disabled objects that are not a child of desiredSource |
Get |
Get the direct children GameObjects of this GameObject. |
Get |
Retrieves the first component of the given type in the active scene |
Get |
Retrieves the first component of the given type in a scene |
Get |
Retrieves all components of the given type in the active scene |
Get |
Retrieves all components of the given type in all loaded scenes |
Get |
Retrieves all components of the given type in a scene |
Get |
Gets a descendant GameObject with a specific name |
Instantiate(Game |
Clones the GameObject, |
Instantiate(Game |
Clones the GameObject, |
Instantiate(Game |
Clones the GameObject, |
Events
Name | Description |
---|---|
Game |
Called when a GameObject has been instantiated through the Game |