Class RectTransformExtensions
Inheritance
object
RectTransformExtensions
Namespace: TetraCreations.Core
Assembly: cs.temp.dll.dll
public static class RectTransformExtensions
Methods
Declaration
public static RectTransform Bottom(this RectTransform rt, float y)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
float |
y |
|
Returns
Type |
Description |
RectTransform |
|
Declaration
public static float GetBottomOffset(this RectTransform rt)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
Returns
Declaration
public static float GetHeight(this RectTransform rt)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
Returns
Declaration
public static float GetLeftOffset(this RectTransform rt)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
Returns
Declaration
public static float GetRightOffset(this RectTransform rt)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
Returns
Declaration
public static float GetTopOffset(this RectTransform rt)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
Returns
Declaration
public static float GetWidth(this RectTransform rt)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
Returns
Declaration
public static RectTransform Height(this RectTransform rt, float height)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
float |
height |
|
Returns
Type |
Description |
RectTransform |
|
Declaration
public static RectTransform Left(this RectTransform rt, float x)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
float |
x |
|
Returns
Type |
Description |
RectTransform |
|
Declaration
public static RectTransform Offset(this RectTransform rt, float left, float bottom, float right, float top)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
float |
left |
|
float |
bottom |
|
float |
right |
|
float |
top |
|
Returns
Type |
Description |
RectTransform |
|
Declaration
public static RectTransform Right(this RectTransform rt, float x)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
float |
x |
|
Returns
Type |
Description |
RectTransform |
|
Declaration
public static RectTransform Size(this RectTransform rt, float width, float height)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
float |
width |
|
float |
height |
|
Returns
Type |
Description |
RectTransform |
|
Declaration
public static RectTransform Top(this RectTransform rt, float y)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
float |
y |
|
Returns
Type |
Description |
RectTransform |
|
Declaration
public static RectTransform Width(this RectTransform rt, float width)
Parameters
Type |
Name |
Description |
RectTransform |
rt |
|
float |
width |
|
Returns
Type |
Description |
RectTransform |
|