|
void | OnSceneGUI () |
| Draw the on-screen selection, knobs, and handle all interaction logic. More...
|
|
void | DrawWidgetTransform () |
| Draw common widget properties that can be shown as a part of the Transform Inspector. More...
|
|
override void | OnInspectorGUI () |
| Draw the inspector properties. More...
|
|
void | DrawAnchorTransform () |
|
static bool | Raycast (Vector3[] corners, out Vector3 hit) |
| Raycast into the screen. More...
|
|
static void | DrawKnob (Vector3 point, bool selected, bool canResize, int id) |
| Draw a control dot at the specified world position. More...
|
|
static float | GetScreenDistance (Vector3 worldPos, Vector2 mousePos) |
| Screen-space distance from the mouse position to the specified world position. More...
|
|
static float | GetScreenDistance (Vector3[] worldPoints, Vector2 mousePos, out int index) |
| Closest screen-space distance from the mouse position to one of the specified world points. More...
|
|
static void | SetCursorRect (Rect rect, MouseCursor cursor) |
| Set the mouse cursor rectangle, refreshing the screen when it gets changed. More...
|
|
static Vector3[] | GetHandles (Vector3[] corners) |
| Convert the specified 4 corners into 8 pivot points (adding left, top, right, bottom – in that order). More...
|
|
static UIWidget.Pivot | GetPivotUnderMouse (Vector3[] worldPos, Event e, bool[] resizable, bool movable, ref Action action) |
| Determine what kind of pivot point is under the mouse and update the cursor accordingly. More...
|
|
static void | DrawAnchorHandle (UIRect.AnchorPoint anchor, Transform myTrans, Vector3[] myCorners, int side, int id) |
| Draw the specified anchor point. More...
|
|
static void | DrawColor (SerializedObject so, UIWidget w) |
| Draw the widget's color. More...
|
|
static void | DrawInspectorProperties (SerializedObject so, UIWidget w, bool drawColor) |
| Draw common widget properties. More...
|
|
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 new UIWidgetInspector | instance |
|
static UIWidget.Pivot[] | pivotPoints |
|
static UIRectEditor | instance |
|
enum | AnchorType { AnchorType.None,
AnchorType.Unified,
AnchorType.Advanced
} |
|
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...
|
|
UIWidget | mWidget |
|
AnchorType | mAnchorType = AnchorType.None |
|
Transform[] | mTarget = new Transform[4] |
|
bool[] | mCustom = new bool[] { false, false, false, false } |
|
static bool | mUseShader = false |
|
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 } |
|
static Color | handlesColor [get] |
| Color used by the handles based on the current color scheme. More...
|
|
Inspector class used to edit UILabels.