C# 클래스 UIRectEditor, TheUnseen

상속: Editor
파일 보기 프로젝트 열기: henryj41043/TheUnseen 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
FieldName string[]
HorizontalList string[]
IsHorizontal bool[]
PrefixName string[]
VerticalList string[]
mAnchorType AnchorType
mCustom bool[]
mTarget Transform[]

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

메소드 상세

DrawAnchor() 보호된 메소드

Helper function that draws the suffix after the relative fields.
protected DrawAnchor ( int index, bool targetSelection ) : void
index int
targetSelection bool
리턴 void

DrawCustomProperties() 보호된 메소드

protected DrawCustomProperties ( ) : void
리턴 void

DrawFinalProperties() 보호된 메소드

Draw the "Anchors" property block.
protected DrawFinalProperties ( ) : void
리턴 void

DrawSingleAnchorSelection() 보호된 메소드

Draw a selection for a single target (one target sets all 4 sides)
protected DrawSingleAnchorSelection ( ) : UnityEditor.SerializedProperty
리턴 UnityEditor.SerializedProperty

GetCamera() 정적인 보호된 메소드

Pass something like leftAnchor.target to get its rectangle reference.
static protected GetCamera ( UnityEditor.SerializedProperty sp ) : Camera
sp UnityEditor.SerializedProperty
리턴 Camera

GetRect() 정적인 보호된 메소드

Pass something like leftAnchor.target to get its rectangle reference.
static protected GetRect ( UnityEditor.SerializedProperty sp ) : UIRect,
sp UnityEditor.SerializedProperty
리턴 UIRect,

IsCommon() 정적인 보호된 메소드

Whether the specified relative offset is a common value (0, 0.5, or 1)
static protected IsCommon ( float relative ) : bool
relative float
리턴 bool

IsRect() 정적인 보호된 메소드

Returns 'true' if the specified serialized property reference is a UIRect.
static protected IsRect ( UnityEditor.SerializedProperty sp ) : bool
sp UnityEditor.SerializedProperty
리턴 bool

OnDrawFinalProperties() 보호된 메소드

protected OnDrawFinalProperties ( ) : void
리턴 void

OnEnable() 보호된 메소드

Determine the initial anchor type.
protected OnEnable ( ) : void
리턴 void

OnInspectorGUI() 공개 메소드

Draw the inspector properties.
public OnInspectorGUI ( ) : void
리턴 void

ReEvaluateAnchorType() 보호된 메소드

Manually re-evaluate the current anchor type.
protected ReEvaluateAnchorType ( ) : void
리턴 void

ShouldDrawProperties() 보호된 메소드

protected ShouldDrawProperties ( ) : bool
리턴 bool

UpdateAnchor() 보호된 메소드

Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
protected UpdateAnchor ( int index, bool resetRelative ) : void
index int
resetRelative bool
리턴 void

UpdateAnchors() 보호된 메소드

Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
protected UpdateAnchors ( bool resetRelative ) : void
resetRelative bool
리턴 void

UpdateHorizontalAnchor() 정적인 공개 메소드

Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
static public UpdateHorizontalAnchor ( UIRect, r, UIRect, anchor, bool resetRelative ) : void
r UIRect,
anchor UIRect,
resetRelative bool
리턴 void

UpdateVerticalAnchor() 정적인 공개 메소드

Convenience function that switches the anchor mode and ensures that dimensions are kept intact.
static public UpdateVerticalAnchor ( UIRect, r, UIRect, anchor, bool resetRelative ) : void
r UIRect,
anchor UIRect,
resetRelative bool
리턴 void

프로퍼티 상세

FieldName 정적으로 보호되어 있는 프로퍼티

static protected string[] FieldName
리턴 string[]

HorizontalList 정적으로 보호되어 있는 프로퍼티

static protected string[] HorizontalList
리턴 string[]

IsHorizontal 정적으로 보호되어 있는 프로퍼티

static protected bool[] IsHorizontal
리턴 bool[]

PrefixName 정적으로 보호되어 있는 프로퍼티

static protected string[] PrefixName
리턴 string[]

VerticalList 정적으로 보호되어 있는 프로퍼티

static protected string[] VerticalList
리턴 string[]

mAnchorType 보호되어 있는 프로퍼티

protected AnchorType mAnchorType
리턴 AnchorType

mCustom 보호되어 있는 프로퍼티

protected bool[] mCustom
리턴 bool[]

mTarget 보호되어 있는 프로퍼티

protected Transform[] mTarget
리턴 Transform[]