C# Class Extension.ExtensionClass

Show file Open project: tommai78101/Multiplier Class Usage Examples

Public Methods

Method Description
AnchorToCorners ( this transform ) : void
GetHeight ( this trans ) : float
GetRandomPosition ( this gameObject ) : System.Vector3
GetSingleActiveToggle ( this group ) : Toggle
GetSize ( this trans ) : System.Vector2
GetWidth ( this trans ) : float
ReachedDestination ( this agent ) : bool
SetBottomLeftPosition ( this trans, System.Vector2 newPos ) : void
SetBottomRightPosition ( this trans, System.Vector2 newPos ) : void
SetHeight ( this trans, float newSize ) : void
SetPivotAndAnchors ( this trans, System.Vector2 aVec ) : void
SetRightTopPosition ( this trans, System.Vector2 newPos ) : void
SetSize ( this trans, System.Vector2 newSize ) : void
SetTopLeftPosition ( this trans, System.Vector2 newPos ) : void
SetWidth ( this trans, float newSize ) : void

Method Details

AnchorToCorners() public static method

public static AnchorToCorners ( this transform ) : void
transform this
return void

GetHeight() public static method

public static GetHeight ( this trans ) : float
trans this
return float

GetRandomPosition() public static method

public static GetRandomPosition ( this gameObject ) : System.Vector3
gameObject this
return System.Vector3

GetSingleActiveToggle() public static method

public static GetSingleActiveToggle ( this group ) : Toggle
group this
return Toggle

GetSize() public static method

public static GetSize ( this trans ) : System.Vector2
trans this
return System.Vector2

GetWidth() public static method

public static GetWidth ( this trans ) : float
trans this
return float

ReachedDestination() public static method

public static ReachedDestination ( this agent ) : bool
agent this
return bool

SetBottomLeftPosition() public static method

public static SetBottomLeftPosition ( this trans, System.Vector2 newPos ) : void
trans this
newPos System.Vector2
return void

SetBottomRightPosition() public static method

public static SetBottomRightPosition ( this trans, System.Vector2 newPos ) : void
trans this
newPos System.Vector2
return void

SetHeight() public static method

public static SetHeight ( this trans, float newSize ) : void
trans this
newSize float
return void

SetPivotAndAnchors() public static method

public static SetPivotAndAnchors ( this trans, System.Vector2 aVec ) : void
trans this
aVec System.Vector2
return void

SetRightTopPosition() public static method

public static SetRightTopPosition ( this trans, System.Vector2 newPos ) : void
trans this
newPos System.Vector2
return void

SetSize() public static method

public static SetSize ( this trans, System.Vector2 newSize ) : void
trans this
newSize System.Vector2
return void

SetTopLeftPosition() public static method

public static SetTopLeftPosition ( this trans, System.Vector2 newPos ) : void
trans this
newPos System.Vector2
return void

SetWidth() public static method

public static SetWidth ( this trans, float newSize ) : void
trans this
newSize float
return void