| UnityGameObjectUtils Methods |
The UnityGameObjectUtils type exposes the following members.
| Name | Description | |
|---|---|---|
| AddChild(GameObject, String) |
Instantiates a new game object with the specified name and adds it
to the game object.
Makes sure the position/rotation/scale are initialized correctly.
| |
| AddChild(GameObject, GameObject) |
Instantiates a new game object from the specified prefab and adds it
to the game object.
Makes sure the position/rotation/scale are initialized correctly.
| |
| DestroyChildren |
Destroys all children from the specified game object.
| |
| GetChildren |
Collects all children from the specified game object.
| |
| GetDescendants | ||
| GetDescendantsAndSelf | ||
| GetOrderedChildren |
Returns all children of the specified game object, ordered by name.
| |
| GetPath |
Returns the full path (i.e. names of all ancestors and self) to the game object.
| |
| GetScale |
Returns the absolute scale of the specified transform relative to the specified ancestor.
| |
| SetScale |
Sets the absolute scale of the specified transform relative to the specified ancestor.
|