C# 클래스 UIRect.AnchorPoint, LoopScorllViewForNGUI

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

공개 프로퍼티들

프로퍼티 타입 설명
absolute int
relative float
target Transform

공개 메소드들

메소드 설명
AnchorPoint ( ) : UnityEngine
AnchorPoint ( float relative ) : UnityEngine
GetSides ( Transform relativeTo ) : Vector3[]

Convenience function that returns the sides the anchored point is anchored to.

Set ( Transform target, float relative, float absolute ) : void

Convenience function that sets the anchor's values.

Set ( float relative, float absolute ) : void

Convenience function that sets the anchor's values.

SetHorizontal ( Transform parent, float localPos ) : void

Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.

SetToNearest ( float abs0, float abs1, float abs2 ) : void

Set the anchor's value to the nearest of the 3 possible choices of (left, center, right) or (bottom, center, top).

SetToNearest ( float rel0, float rel1, float rel2, float abs0, float abs1, float abs2 ) : void

Set the anchor's value given the 3 possible anchor combinations. Chooses the one with the smallest absolute offset.

SetVertical ( Transform parent, float localPos ) : void

Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.

메소드 상세

AnchorPoint() 공개 메소드

public AnchorPoint ( ) : UnityEngine
리턴 UnityEngine

AnchorPoint() 공개 메소드

public AnchorPoint ( float relative ) : UnityEngine
relative float
리턴 UnityEngine

GetSides() 공개 메소드

Convenience function that returns the sides the anchored point is anchored to.
public GetSides ( Transform relativeTo ) : Vector3[]
relativeTo Transform
리턴 Vector3[]

Set() 공개 메소드

Convenience function that sets the anchor's values.
public Set ( Transform target, float relative, float absolute ) : void
target Transform
relative float
absolute float
리턴 void

Set() 공개 메소드

Convenience function that sets the anchor's values.
public Set ( float relative, float absolute ) : void
relative float
absolute float
리턴 void

SetHorizontal() 공개 메소드

Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.
public SetHorizontal ( Transform parent, float localPos ) : void
parent Transform
localPos float
리턴 void

SetToNearest() 공개 메소드

Set the anchor's value to the nearest of the 3 possible choices of (left, center, right) or (bottom, center, top).
public SetToNearest ( float abs0, float abs1, float abs2 ) : void
abs0 float
abs1 float
abs2 float
리턴 void

SetToNearest() 공개 메소드

Set the anchor's value given the 3 possible anchor combinations. Chooses the one with the smallest absolute offset.
public SetToNearest ( float rel0, float rel1, float rel2, float abs0, float abs1, float abs2 ) : void
rel0 float
rel1 float
rel2 float
abs0 float
abs1 float
abs2 float
리턴 void

SetVertical() 공개 메소드

Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.
public SetVertical ( Transform parent, float localPos ) : void
parent Transform
localPos float
리턴 void

프로퍼티 상세

absolute 공개적으로 프로퍼티

public int absolute
리턴 int

relative 공개적으로 프로퍼티

public float relative
리턴 float

target 공개적으로 프로퍼티

public Transform target
리턴 Transform