|
| AnchorPoint () |
|
| AnchorPoint (float relative) |
|
void | Set (float relative, float absolute) |
| Convenience function that sets the anchor's values. More...
|
|
void | Set (Transform target, float relative, float absolute) |
| Convenience function that sets the anchor's values. More...
|
|
void | SetToNearest (float abs0, float abs1, float abs2) |
| Set the anchor's value to the nearest of the 3 possible choices of (left, center, right) or (bottom, center, top). More...
|
|
void | SetToNearest (float rel0, float rel1, float rel2, float abs0, float abs1, float abs2) |
| Set the anchor's value given the 3 possible anchor combinations. Chooses the one with the smallest absolute offset. More...
|
|
void | SetHorizontal (Transform parent, float localPos) |
| Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact. More...
|
|
void | SetVertical (Transform parent, float localPos) |
| Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact. More...
|
|
Vector3[] | GetSides (Transform relativeTo) |
| Convenience function that returns the sides the anchored point is anchored to. More...
|
|
UIRect.AnchorPoint.AnchorPoint |
( |
| ) |
|
UIRect.AnchorPoint.AnchorPoint |
( |
float |
relative | ) |
|
Vector3 [] UIRect.AnchorPoint.GetSides |
( |
Transform |
relativeTo | ) |
|
Convenience function that returns the sides the anchored point is anchored to.
void UIRect.AnchorPoint.Set |
( |
float |
relative, |
|
|
float |
absolute |
|
) |
| |
Convenience function that sets the anchor's values.
void UIRect.AnchorPoint.Set |
( |
Transform |
target, |
|
|
float |
relative, |
|
|
float |
absolute |
|
) |
| |
Convenience function that sets the anchor's values.
void UIRect.AnchorPoint.SetHorizontal |
( |
Transform |
parent, |
|
|
float |
localPos |
|
) |
| |
Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.
void UIRect.AnchorPoint.SetToNearest |
( |
float |
abs0, |
|
|
float |
abs1, |
|
|
float |
abs2 |
|
) |
| |
Set the anchor's value to the nearest of the 3 possible choices of (left, center, right) or (bottom, center, top).
void UIRect.AnchorPoint.SetToNearest |
( |
float |
rel0, |
|
|
float |
rel1, |
|
|
float |
rel2, |
|
|
float |
abs0, |
|
|
float |
abs1, |
|
|
float |
abs2 |
|
) |
| |
Set the anchor's value given the 3 possible anchor combinations. Chooses the one with the smallest absolute offset.
void UIRect.AnchorPoint.SetVertical |
( |
Transform |
parent, |
|
|
float |
localPos |
|
) |
| |
Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.
int UIRect.AnchorPoint.absolute = 0 |
UIRect UIRect.AnchorPoint.rect |
float UIRect.AnchorPoint.relative = 0f |
Transform UIRect.AnchorPoint.target |
Camera UIRect.AnchorPoint.targetCam |
The documentation for this class was generated from the following file:
- D:/Projects/NGUI/Assets/NGUI/Scripts/Internal/UIRect.cs