Search Results for

    Show / Hide Table of Contents

    Class SUGameObjectExtensions

    Inheritance
    Object
    SUGameObjectExtensions
    Namespace: Surfer
    Assembly: cs.temp.dll.dll
    Syntax
    public static class SUGameObjectExtensions

    Methods

    GetCanvasAndCamerInfo(GameObject, out RectTransform, out Camera, out Boolean)

    Declaration
    public static void GetCanvasAndCamerInfo(this GameObject go, out RectTransform canvasRect, out Camera cam, out bool isOverlay)
    Parameters
    Type Name Description
    GameObject go
    RectTransform canvasRect
    Camera cam
    Boolean isOverlay

    GetChildStates(GameObject, ref List<SUStateInfo>)

    Get a list of all child states

    Declaration
    public static void GetChildStates(this GameObject caller, ref List<SUStateInfo> output)
    Parameters
    Type Name Description
    GameObject caller
    List<SUStateInfo> output

    GetObjectStateElementData(GameObject, Boolean)

    Gets the parent state element of a game object

    Declaration
    public static SUElementData GetObjectStateElementData(this GameObject obj, bool checkCaller = false)
    Parameters
    Type Name Description
    GameObject obj
    Boolean checkCaller
    Returns
    Type Description
    SUElementData

    GetObjectStateName(GameObject, Boolean)

    Gets the parent state name of a game object

    Declaration
    public static string GetObjectStateName(this GameObject obj, bool checkCaller = false)
    Parameters
    Type Name Description
    GameObject obj
    Boolean checkCaller
    Returns
    Type Description
    String

    GetObjectStatePlayerID(GameObject, Boolean)

    Gets the playerID of the parent state of a game object

    Declaration
    public static int GetObjectStatePlayerID(this GameObject obj, bool checkCaller = false)
    Parameters
    Type Name Description
    GameObject obj
    Boolean checkCaller
    Returns
    Type Description
    Int32

    GetObjectStateTransfom(GameObject, Boolean)

    Gets the parent state of a game object

    Declaration
    public static Transform GetObjectStateTransfom(this GameObject obj, bool checkCaller = false)
    Parameters
    Type Name Description
    GameObject obj
    Boolean checkCaller
    Returns
    Type Description
    Transform

    GetParentState(GameObject)

    Recursively get the parent state of an object

    Declaration
    public static SUElementData GetParentState(this GameObject caller)
    Parameters
    Type Name Description
    GameObject caller
    Returns
    Type Description
    SUElementData

    GetParentStates(GameObject, ref List<SUStateInfo>)

    Get a list of all parent states

    Declaration
    public static void GetParentStates(this GameObject caller, ref List<SUStateInfo> output)
    Parameters
    Type Name Description
    GameObject caller
    List<SUStateInfo> output

    GetSiblingStates(GameObject, String, ref List<SUStateInfo>)

    Declaration
    public static void GetSiblingStates(this GameObject obj, string myState, ref List<SUStateInfo> siblingStates)
    Parameters
    Type Name Description
    GameObject obj
    String myState
    List<SUStateInfo> siblingStates

    IsMyStateOpen(GameObject, Int32)

    Check if a state of an object is open or not

    Declaration
    public static bool IsMyStateOpen(this GameObject caller, int version = 0)
    Parameters
    Type Name Description
    GameObject caller
    Int32 version
    Returns
    Type Description
    Boolean

    true if open, false otherwise

    In This Article
    Back to top Copyright © 2021 ATStudio