Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Provides API extension for the RectTransform class.
Static Public Member Functions | |
static Vector2 | GetLeftTopPoint (this RectTransform transform) |
Computes position of the left to corner of an element at the screen space coordinates. More... | |
static Vector2 | GetLeftTopPoint (this RectTransform transform, Vector2 position) |
Getting left top corner for the rect transform with simulation of some another position. More... | |
static Vector2 | GetLeftTopPoint (this RectTransform transform, Vector2 position, Vector2 size) |
Getting left top corner for the rect transform with simulation of some another position. More... | |
static void | SetLeft (this RectTransform rt, float left) |
Sets offset from left side. More... | |
static void | SetRight (this RectTransform rt, float right) |
Sets offset from right side. More... | |
static void | SetTop (this RectTransform rt, float top) |
Sets offset from top side. More... | |
static void | SetBottom (this RectTransform rt, float bottom) |
Sets offset from bottom side. More... | |
static void | SetZeroOffset (this RectTransform rt) |
Drops offset to the 0. More... | |
static void | PinRight (this RectTransform rt) |
Pins UI coordinates to the right side of the parent GUI element. More... | |
static void | PinLeft (this RectTransform rt) |
Pins UI coordinates to the left side of the parent GUI element. More... | |
static void | PinTop (this RectTransform rt) |
Pins UI coordinates to the top side of the parent GUI element. More... | |
static void | PinBottom (this RectTransform rt) |
Pins UI coordinates to the bottom side of the parent GUI element. More... | |
static void | PinStratch (this RectTransform rt) |
Makes GUI element scratched to the parent GUI element. More... | |
|
static |
Computes position of the left to corner of an element at the screen space coordinates.
transform | Target object. |
|
static |
Getting left top corner for the rect transform with simulation of some another position.
transform | Target transform with layout settings. |
position | Virtual position of the transform in world coords. |
|
static |
Getting left top corner for the rect transform with simulation of some another position.
transform | Target transform with layout settings. |
position | Virtual position of the transform in world coords. |
size | Virtual size of the element. |
|
static |
Pins UI coordinates to the bottom side of the parent GUI element.
rt | Target transform. |
|
static |
Pins UI coordinates to the left side of the parent GUI element.
rt | Target transform. |
|
static |
Pins UI coordinates to the right side of the parent GUI element.
rt | Target transform. |
|
static |
Makes GUI element scratched to the parent GUI element.
rt | Target transform. |
|
static |
Pins UI coordinates to the top side of the parent GUI element.
rt | Target transform. |
|
static |
Sets offset from bottom side.
rt | Target transform. |
bottom | Offset value. |
|
static |
Sets offset from left side.
rt | Target transform. |
left | Offset value. |
|
static |
Sets offset from right side.
rt | Target transform. |
right | Offset value. |
|
static |
Sets offset from top side.
rt | Target transform. |
top | Offset value. |
|
static |
Drops offset to the 0.
rt | Target transform. |