NGUI: Next-Gen UI kit
3.7.2
|
Editor class used to view panels. More...
Public Member Functions | |
void | OnSceneGUI () |
Handles & interaction. More... | |
Public Member Functions inherited from UIRectEditor | |
override void | OnInspectorGUI () |
Draw the inspector properties. More... | |
void | DrawAnchorTransform () |
Protected Member Functions | |
override void | OnEnable () |
Determine the initial anchor type. More... | |
override void | OnDisable () |
Clear the instance reference. More... | |
override bool | ShouldDrawProperties () |
Draw the inspector widget. More... | |
override void | DrawFinalProperties () |
Add the "Show draw calls" button at the very end. More... | |
Protected Member Functions inherited from UIRectEditor | |
void | ReEvaluateAnchorType () |
Manually re-evaluate the current anchor type. More... | |
virtual void | DrawCustomProperties () |
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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from UIRectEditor | |
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 inherited from UIRectEditor | |
static UIRectEditor | instance |
Protected Types inherited from UIRectEditor | |
enum | AnchorType { AnchorType.None, AnchorType.Unified, AnchorType.Advanced } |
Static Protected Member Functions inherited from UIRectEditor | |
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 inherited from UIRectEditor | |
AnchorType | mAnchorType = AnchorType.None |
Transform[] | mTarget = new Transform[4] |
bool[] | mCustom = new bool[] { false, false, false, false } |
Static Protected Attributes inherited from UIRectEditor | |
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 panels.
|
protectedvirtual |
Add the "Show draw calls" button at the very end.
Reimplemented from UIRectEditor.
|
protectedvirtual |
Clear the instance reference.
Reimplemented from UIRectEditor.
|
protectedvirtual |
Determine the initial anchor type.
Reimplemented from UIRectEditor.
void UIPanelInspector.OnSceneGUI | ( | ) |
Handles & interaction.
|
protectedvirtual |
Draw the inspector widget.
Reimplemented from UIRectEditor.