C# Class UnityEngine.RectTransform

Position, size, anchor and pivot information for a rectangle.

Inheritance: Transform
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
GetParentSize Vector2
GetRectInParentSpace Rect
INTERNAL_get_anchorMax void
INTERNAL_get_anchorMin void
INTERNAL_get_anchoredPosition void
INTERNAL_get_pivot void
INTERNAL_get_rect void
INTERNAL_get_sizeDelta void
INTERNAL_set_anchorMax void
INTERNAL_set_anchorMin void
INTERNAL_set_anchoredPosition void
INTERNAL_set_pivot void
INTERNAL_set_sizeDelta void
SendReapplyDrivenProperties void

Public Methods

Method Description
GetLocalCorners ( Vector3 fourCornersArray ) : void

Get the corners of the calculated rectangle in the local space of its Transform.

GetWorldCorners ( Vector3 fourCornersArray ) : void

Get the corners of the calculated rectangle in world space.

SetInsetAndSizeFromParentEdge ( System.Edge edge, float inset, float size ) : void
SetSizeWithCurrentAnchors ( Axis axis, float size ) : void

Private Methods

Method Description
GetParentSize ( ) : Vector2
GetRectInParentSpace ( ) : Rect
INTERNAL_get_anchorMax ( Vector2 &value ) : void
INTERNAL_get_anchorMin ( Vector2 &value ) : void
INTERNAL_get_anchoredPosition ( Vector2 &value ) : void
INTERNAL_get_pivot ( Vector2 &value ) : void
INTERNAL_get_rect ( Rect &value ) : void
INTERNAL_get_sizeDelta ( Vector2 &value ) : void
INTERNAL_set_anchorMax ( Vector2 &value ) : void
INTERNAL_set_anchorMin ( Vector2 &value ) : void
INTERNAL_set_anchoredPosition ( Vector2 &value ) : void
INTERNAL_set_pivot ( Vector2 &value ) : void
INTERNAL_set_sizeDelta ( Vector2 &value ) : void
SendReapplyDrivenProperties ( RectTransform driven ) : void

Method Details

GetLocalCorners() public method

Get the corners of the calculated rectangle in the local space of its Transform.

public GetLocalCorners ( Vector3 fourCornersArray ) : void
fourCornersArray Vector3 Array that corners should be filled into.
return void

GetWorldCorners() public method

Get the corners of the calculated rectangle in world space.

public GetWorldCorners ( Vector3 fourCornersArray ) : void
fourCornersArray Vector3 Array that corners should be filled into.
return void

SetInsetAndSizeFromParentEdge() public method

public SetInsetAndSizeFromParentEdge ( System.Edge edge, float inset, float size ) : void
edge System.Edge
inset float
size float
return void

SetSizeWithCurrentAnchors() public method

public SetSizeWithCurrentAnchors ( Axis axis, float size ) : void
axis Axis
size float
return void