Property | Type | Description | |
---|---|---|---|
FieldName | string[] | ||
HorizontalList | string[] | ||
IsHorizontal | bool[] | ||
PrefixName | string[] | ||
VerticalList | string[] | ||
mAnchorType | AnchorType | ||
mCustom | bool[] | ||
mTarget | Transform[] |
Method | Description | |
---|---|---|
OnInspectorGUI ( ) : void |
Draw the inspector properties.
|
|
UpdateHorizontalAnchor ( UIRect, r, UIRect, anchor, bool resetRelative ) : void |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
|
|
UpdateVerticalAnchor ( UIRect, r, UIRect, anchor, bool resetRelative ) : void |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
|
Method | Description | |
---|---|---|
DrawAnchor ( int index, bool targetSelection ) : void |
Helper function that draws the suffix after the relative fields.
|
|
DrawCustomProperties ( ) : void | ||
DrawFinalProperties ( ) : void |
Draw the "Anchors" property block.
|
|
DrawSingleAnchorSelection ( ) : UnityEditor.SerializedProperty |
Draw a selection for a single target (one target sets all 4 sides)
|
|
GetCamera ( UnityEditor.SerializedProperty sp ) : Camera |
Pass something like leftAnchor.target to get its rectangle reference.
|
|
GetRect ( UnityEditor.SerializedProperty sp ) : UIRect, |
Pass something like leftAnchor.target to get its rectangle reference.
|
|
IsCommon ( float relative ) : bool |
Whether the specified relative offset is a common value (0, 0.5, or 1)
|
|
IsRect ( UnityEditor.SerializedProperty sp ) : bool |
Returns 'true' if the specified serialized property reference is a UIRect.
|
|
OnDrawFinalProperties ( ) : void | ||
OnEnable ( ) : void |
Determine the initial anchor type.
|
|
ReEvaluateAnchorType ( ) : void |
Manually re-evaluate the current anchor type.
|
|
ShouldDrawProperties ( ) : bool | ||
UpdateAnchor ( int index, bool resetRelative ) : void |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
|
|
UpdateAnchors ( bool resetRelative ) : void |
Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
|
protected DrawAnchor ( int index, bool targetSelection ) : void | ||
index | int | |
targetSelection | bool | |
return | void |
protected DrawSingleAnchorSelection ( ) : UnityEditor.SerializedProperty | ||
return | UnityEditor.SerializedProperty |
static protected GetCamera ( UnityEditor.SerializedProperty sp ) : Camera | ||
sp | UnityEditor.SerializedProperty | |
return | Camera |
static protected GetRect ( UnityEditor.SerializedProperty sp ) : UIRect, | ||
sp | UnityEditor.SerializedProperty | |
return | UIRect, |
static protected IsCommon ( float relative ) : bool | ||
relative | float | |
return | bool |
static protected IsRect ( UnityEditor.SerializedProperty sp ) : bool | ||
sp | UnityEditor.SerializedProperty | |
return | bool |
protected UpdateAnchor ( int index, bool resetRelative ) : void | ||
index | int | |
resetRelative | bool | |
return | void |
protected UpdateAnchors ( bool resetRelative ) : void | ||
resetRelative | bool | |
return | void |
static public UpdateHorizontalAnchor ( UIRect, r, UIRect, anchor, bool resetRelative ) : void | ||
r | UIRect, | |
anchor | UIRect, | |
resetRelative | bool | |
return | void |
static public UpdateVerticalAnchor ( UIRect, r, UIRect, anchor, bool resetRelative ) : void | ||
r | UIRect, | |
anchor | UIRect, | |
resetRelative | bool | |
return | void |