Class GameObjectExtensions
Represents a series of Game Object extension methods.
Inherited Members
Namespace: TriLibCore.Extensions
Assembly: TriLibCore.dll
Syntax
public static class GameObjectExtensions
Methods
CalculateBounds(GameObject, bool)
Calculates this Game Object Bounds.
Declaration
public static Bounds CalculateBounds(this GameObject gameObject, bool localSpace = false)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | The GameObject to calculate the Bounds. |
bool | localSpace | Pass |
Returns
Type | Description |
---|---|
Bounds | The calculated Bounds. |
CalculatePreciseBounds(GameObject)
Calculates the precise Bounds (including Meshes) of the given GameObject.
Declaration
public static Bounds CalculatePreciseBounds(this GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | The GameObject used to calculate the Bounds. |
Returns
Type | Description |
---|---|
Bounds | The calculated Bounds. |
SampleBindPose(GameObject)
Moves the bones in the object hierarchy to their binding poses.
Declaration
public static void SampleBindPose(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | The hierarchy root. |