TriLib
Search Results for

    Show / Hide Table of Contents

    Class GameObjectExtensions

    Represents a series of Game Object extension methods.

    Inheritance
    object
    GameObjectExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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 true to calculate the Bounds in local space.

    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.

    In this article
    Back to top Generated by DocFX