NGUI: Next-Gen UI kit
3.7.2
|
Editor class used to view UIRects. More...
Public Member Functions | |
override void | OnInspectorGUI () |
Draw the inspector properties. More... | |
void | DrawAnchorTransform () |
Static Public Member Functions | |
static void | UpdateHorizontalAnchor (UIRect r, UIRect.AnchorPoint anchor, bool resetRelative) |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact. More... | |
static void | UpdateVerticalAnchor (UIRect r, UIRect.AnchorPoint anchor, bool resetRelative) |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact. More... | |
Static Public Attributes | |
static UIRectEditor | instance |
Protected Types | |
enum | AnchorType { AnchorType.None, AnchorType.Unified, AnchorType.Advanced } |
Protected Member Functions | |
virtual void | OnEnable () |
Determine the initial anchor type. More... | |
virtual void | OnDisable () |
Clear the instance reference. More... | |
void | ReEvaluateAnchorType () |
Manually re-evaluate the current anchor type. More... | |
virtual bool | ShouldDrawProperties () |
virtual void | DrawCustomProperties () |
virtual void | DrawFinalProperties () |
Draw the "Anchors" property block. More... | |
virtual void | OnDrawFinalProperties () |
SerializedProperty | DrawSingleAnchorSelection () |
Draw a selection for a single target (one target sets all 4 sides) More... | |
void | DrawAnchor (int index, bool targetSelection) |
Helper function that draws the suffix after the relative fields. More... | |
void | UpdateAnchors (bool resetRelative) |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact. More... | |
void | UpdateAnchor (int index, bool resetRelative) |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact. More... | |
Static Protected Member Functions | |
static bool | IsCommon (float relative) |
Whether the specified relative offset is a common value (0, 0.5, or 1) More... | |
static bool | IsRect (SerializedProperty sp) |
Returns 'true' if the specified serialized property reference is a UIRect. More... | |
static UIRect | GetRect (SerializedProperty sp) |
Pass something like leftAnchor.target to get its rectangle reference. More... | |
static Camera | GetCamera (SerializedProperty sp) |
Pass something like leftAnchor.target to get its rectangle reference. More... | |
Protected Attributes | |
AnchorType | mAnchorType = AnchorType.None |
Transform[] | mTarget = new Transform[4] |
bool[] | mCustom = new bool[] { false, false, false, false } |
Static Protected Attributes | |
static string[] | PrefixName = new string[] { "Left", "Right", "Bottom", "Top" } |
static string[] | FieldName = new string[] { "leftAnchor", "rightAnchor", "bottomAnchor", "topAnchor" } |
static string[] | HorizontalList = new string[] { "Target's Left", "Target's Center", "Target's Right", "Custom", "Set to Current Position" } |
static string[] | VerticalList = new string[] { "Target's Bottom", "Target's Center", "Target's Top", "Custom", "Set to Current Position" } |
static bool[] | IsHorizontal = new bool[] { true, true, false, false } |
Editor class used to view UIRects.
|
protected |
|
protected |
Helper function that draws the suffix after the relative fields.
void UIRectEditor.DrawAnchorTransform | ( | ) |
|
protectedvirtual |
Reimplemented in UIWidgetInspector, and UIBasicSpriteEditor.
|
protectedvirtual |
Draw the "Anchors" property block.
Reimplemented in UIPanelInspector.
|
protected |
Draw a selection for a single target (one target sets all 4 sides)
|
staticprotected |
Pass something like leftAnchor.target to get its rectangle reference.
|
staticprotected |
Pass something like leftAnchor.target to get its rectangle reference.
|
staticprotected |
Whether the specified relative offset is a common value (0, 0.5, or 1)
|
staticprotected |
Returns 'true' if the specified serialized property reference is a UIRect.
|
protectedvirtual |
Clear the instance reference.
Reimplemented in UIWidgetInspector, and UIPanelInspector.
|
protectedvirtual |
Reimplemented in UIWidgetInspector.
|
protectedvirtual |
Determine the initial anchor type.
Reimplemented in UIWidgetInspector, UIPanelInspector, UILabelInspector, UI2DSpriteEditor, and UITextureInspector.
override void UIRectEditor.OnInspectorGUI | ( | ) |
Draw the inspector properties.
|
protected |
Manually re-evaluate the current anchor type.
|
protectedvirtual |
Reimplemented in UIPanelInspector, UILabelInspector, UISpriteInspector, UI2DSpriteEditor, and UITextureInspector.
|
protected |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
|
protected |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
|
static |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
|
static |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
|
staticprotected |
|
staticprotected |
|
static |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |