C# 클래스 UIRect, LoopScorllViewForNGUI

상속: MonoBehaviour
파일 보기 프로젝트 열기: tinyantstudio/LoopScorllViewForNGUI 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bottomAnchor AnchorPoint,
leftAnchor AnchorPoint,
rightAnchor AnchorPoint,
topAnchor AnchorPoint,
updateAnchors AnchorUpdate

보호된 프로퍼티들

프로퍼티 타입 설명
mChanged bool
mChildren BetterList
mGo GameObject
mParentFound bool
mStarted bool
mTrans Transform
mUpdateAnchors bool

공개 메소드들

메소드 설명
CalculateFinalAlpha ( int frameID ) : float

Get the final cumulative alpha.

FindCameraFor ( AnchorPoint, ap ) : void

Helper function -- attempt to find the camera responsible for the specified anchor.

GetSides ( Transform relativeTo ) : Vector3[]

Get the sides of the rectangle relative to the specified transform. The order is left, top, right, bottom.

Invalidate ( bool includeChildren ) : void

Sets the local 'changed' flag, indicating that some parent value(s) are now be different, such as alpha for example.

ParentHasChanged ( ) : void

Call this function when the rectangle's parent has changed.

ResetAnchors ( ) : void

Ensure that all rect references are set correctly on the anchors.

ResetAndUpdateAnchors ( ) : void

Convenience method that resets and updates the anchors, all at once.

SetAnchor ( GameObject go ) : void

Anchor this rectangle to the specified transform. Note that this function will not keep the rectangle's current dimensions, but will instead assume the target's dimensions.

SetAnchor ( GameObject go, int left, int bottom, int right, int top ) : void

Anchor this rectangle to the specified transform.

SetAnchor ( Transform t ) : void

Anchor this rectangle to the specified transform. Note that this function will not keep the rectangle's current dimensions, but will instead assume the target's dimensions.

SetRect ( float x, float y, float width, float height ) : void

Set the rectangle manually.

Update ( ) : void

Rectangles need to update in a specific order -- parents before children. When deriving from this class, override its OnUpdate() function instead.

UpdateAnchors ( ) : void

Manually update anchored sides.

보호된 메소드들

메소드 설명
GetLocalPos ( AnchorPoint, ac, Transform trans ) : Vector3

Helper function that gets the specified anchor's position relative to the chosen transform.

OnAnchor ( ) : void

Update the dimensions of the rectangle using anchor points.

OnDisable ( ) : void

Clear the parent rectangle reference.

OnEnable ( ) : void

Automatically find the parent rectangle.

OnInit ( ) : void

Automatically find the parent rectangle.

OnStart ( ) : void

Abstract start functionality, ensured to happen after the anchor rect references have been set.

OnUpdate ( ) : void

Abstract update functionality, ensured to happen after the targeting anchors have been updated.

OnValidate ( ) : void

This callback is sent inside the editor notifying us that some property has changed.

Start ( ) : void

Set anchor rect references on start.

메소드 상세

CalculateFinalAlpha() 공개 추상적인 메소드

Get the final cumulative alpha.
public abstract CalculateFinalAlpha ( int frameID ) : float
frameID int
리턴 float

FindCameraFor() 공개 메소드

Helper function -- attempt to find the camera responsible for the specified anchor.
public FindCameraFor ( AnchorPoint, ap ) : void
ap AnchorPoint,
리턴 void

GetLocalPos() 보호된 메소드

Helper function that gets the specified anchor's position relative to the chosen transform.
protected GetLocalPos ( AnchorPoint, ac, Transform trans ) : Vector3
ac AnchorPoint,
trans Transform
리턴 Vector3

GetSides() 공개 메소드

Get the sides of the rectangle relative to the specified transform. The order is left, top, right, bottom.
public GetSides ( Transform relativeTo ) : Vector3[]
relativeTo Transform
리턴 Vector3[]

Invalidate() 공개 메소드

Sets the local 'changed' flag, indicating that some parent value(s) are now be different, such as alpha for example.
public Invalidate ( bool includeChildren ) : void
includeChildren bool
리턴 void

OnAnchor() 보호된 추상적인 메소드

Update the dimensions of the rectangle using anchor points.
protected abstract OnAnchor ( ) : void
리턴 void

OnDisable() 보호된 메소드

Clear the parent rectangle reference.
protected OnDisable ( ) : void
리턴 void

OnEnable() 보호된 메소드

Automatically find the parent rectangle.
protected OnEnable ( ) : void
리턴 void

OnInit() 보호된 메소드

Automatically find the parent rectangle.
protected OnInit ( ) : void
리턴 void

OnStart() 보호된 추상적인 메소드

Abstract start functionality, ensured to happen after the anchor rect references have been set.
protected abstract OnStart ( ) : void
리턴 void

OnUpdate() 보호된 메소드

Abstract update functionality, ensured to happen after the targeting anchors have been updated.
protected OnUpdate ( ) : void
리턴 void

OnValidate() 보호된 메소드

This callback is sent inside the editor notifying us that some property has changed.
protected OnValidate ( ) : void
리턴 void

ParentHasChanged() 공개 메소드

Call this function when the rectangle's parent has changed.
public ParentHasChanged ( ) : void
리턴 void

ResetAnchors() 공개 메소드

Ensure that all rect references are set correctly on the anchors.
public ResetAnchors ( ) : void
리턴 void

ResetAndUpdateAnchors() 공개 메소드

Convenience method that resets and updates the anchors, all at once.
public ResetAndUpdateAnchors ( ) : void
리턴 void

SetAnchor() 공개 메소드

Anchor this rectangle to the specified transform. Note that this function will not keep the rectangle's current dimensions, but will instead assume the target's dimensions.
public SetAnchor ( GameObject go ) : void
go GameObject
리턴 void

SetAnchor() 공개 메소드

Anchor this rectangle to the specified transform.
public SetAnchor ( GameObject go, int left, int bottom, int right, int top ) : void
go GameObject
left int
bottom int
right int
top int
리턴 void

SetAnchor() 공개 메소드

Anchor this rectangle to the specified transform. Note that this function will not keep the rectangle's current dimensions, but will instead assume the target's dimensions.
public SetAnchor ( Transform t ) : void
t Transform
리턴 void

SetRect() 공개 추상적인 메소드

Set the rectangle manually.
public abstract SetRect ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
리턴 void

Start() 보호된 메소드

Set anchor rect references on start.
protected Start ( ) : void
리턴 void

Update() 공개 메소드

Rectangles need to update in a specific order -- parents before children. When deriving from this class, override its OnUpdate() function instead.
public Update ( ) : void
리턴 void

UpdateAnchors() 공개 메소드

Manually update anchored sides.
public UpdateAnchors ( ) : void
리턴 void

프로퍼티 상세

bottomAnchor 공개적으로 프로퍼티

Bottom side anchor.
public AnchorPoint, bottomAnchor
리턴 AnchorPoint,

leftAnchor 공개적으로 프로퍼티

Left side anchor.
public AnchorPoint, leftAnchor
리턴 AnchorPoint,

mChanged 보호되어 있는 프로퍼티

protected bool mChanged
리턴 bool

mChildren 보호되어 있는 프로퍼티

protected BetterList mChildren
리턴 BetterList

mGo 보호되어 있는 프로퍼티

protected GameObject mGo
리턴 GameObject

mParentFound 보호되어 있는 프로퍼티

protected bool mParentFound
리턴 bool

mStarted 보호되어 있는 프로퍼티

protected bool mStarted
리턴 bool

mTrans 보호되어 있는 프로퍼티

protected Transform mTrans
리턴 Transform

mUpdateAnchors 보호되어 있는 프로퍼티

protected bool mUpdateAnchors
리턴 bool

rightAnchor 공개적으로 프로퍼티

Right side anchor.
public AnchorPoint, rightAnchor
리턴 AnchorPoint,

topAnchor 공개적으로 프로퍼티

Top side anchor.
public AnchorPoint, topAnchor
리턴 AnchorPoint,

updateAnchors 공개적으로 프로퍼티

Whether anchors will be recalculated on every update.
public AnchorUpdate updateAnchors
리턴 AnchorUpdate