Class SUGameObjectExtensions
Inheritance
SUGameObjectExtensions
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
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
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
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
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
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
GetSiblingStates(GameObject, String, ref List<SUStateInfo>)
Declaration
public static void GetSiblingStates(this GameObject obj, string myState, ref List<SUStateInfo> siblingStates)
Parameters
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
|