C# 클래스 UnityEditor.ProBuilder.ProGridsInterface

파일 보기 프로젝트 열기: Bala-7/CounterStrike 1 사용 예제들

공개 메소드들

메소드 설명
GetActiveGridAxis ( ) : HandleAxis
GetActiveGridOffset ( ) : float
GetPivot ( Vector3 &pivot ) : bool

Return the last known grid pivot point.

GetProGridsInstance ( ) : object
GetProGridsSnapAsGroup ( ) : bool
GetProGridsType ( ) : Type

Get a pg_Editor type.

GridVisible ( ) : bool

Is the grid visible?

IsFullGridEnabled ( ) : bool
OnHandleMove ( Vector3 worldDirection ) : void

Tell ProGrids that a non-Unity handle has moved in some direction (in world space).

ProGridsActive ( ) : bool

True if ProGrids is open in scene.

ProGridsSnap ( Vector3 point ) : Vector3

Snap a Vector3 to the nearest point on the current ProGrids grid if ProGrids is enabled.

ProGridsSnap ( Vector3 point, Vector3 mask ) : Vector3

Snap a Vector3 to the nearest point on the current ProGrids grid if ProGrids is enabled, with mask.

ProGridsSnap ( float point ) : float

Snap a Vector3 to the nearest point on the current ProGrids grid if ProGrids is enabled.

SceneToolbarIsExtended ( ) : bool

Is the scene toolbar extended or collapsed? Also check ProGridsActive to see if ProGrids is open in the first place.

SnapEnabled ( ) : bool

If ProGrids is open and snap enabled, return true. False otherwise.

SnapValue ( ) : float

Return the last known snap value setting from ProGrids.

SubscribePushToGridEvent ( Action listener ) : void

Subscribe to PushToGrid events.

SubscribeToolbarEvent ( Action listener ) : void

Subscribe to toolbar extendo/retracto events. Delegates are called with bool paramater Listener(bool menuOpen);

UnsubscribePushToGridEvent ( Action listener ) : void

Remove subscription from PushToGrid events.

UnsubscribeToolbarEvent ( Action listener ) : void

Remove subscription from extendo/retracto tooblar events.

UseAxisConstraints ( ) : bool

Returns the current UseAxisConstraints value from ProGrids.

비공개 메소드들

메소드 설명
ProGridsInterface ( ) : UnityEngine

메소드 상세

GetActiveGridAxis() 공개 정적인 메소드

public static GetActiveGridAxis ( ) : HandleAxis
리턴 HandleAxis

GetActiveGridOffset() 공개 정적인 메소드

public static GetActiveGridOffset ( ) : float
리턴 float

GetPivot() 공개 정적인 메소드

Return the last known grid pivot point.
public static GetPivot ( Vector3 &pivot ) : bool
pivot Vector3
리턴 bool

GetProGridsInstance() 공개 정적인 메소드

public static GetProGridsInstance ( ) : object
리턴 object

GetProGridsSnapAsGroup() 공개 정적인 메소드

public static GetProGridsSnapAsGroup ( ) : bool
리턴 bool

GetProGridsType() 공개 정적인 메소드

Get a pg_Editor type.
public static GetProGridsType ( ) : Type
리턴 Type

GridVisible() 공개 정적인 메소드

Is the grid visible?
public static GridVisible ( ) : bool
리턴 bool

IsFullGridEnabled() 공개 정적인 메소드

public static IsFullGridEnabled ( ) : bool
리턴 bool

OnHandleMove() 공개 정적인 메소드

Tell ProGrids that a non-Unity handle has moved in some direction (in world space).
public static OnHandleMove ( Vector3 worldDirection ) : void
worldDirection Vector3
리턴 void

ProGridsActive() 공개 정적인 메소드

True if ProGrids is open in scene.
public static ProGridsActive ( ) : bool
리턴 bool

ProGridsSnap() 공개 정적인 메소드

Snap a Vector3 to the nearest point on the current ProGrids grid if ProGrids is enabled.
public static ProGridsSnap ( Vector3 point ) : Vector3
point Vector3
리턴 Vector3

ProGridsSnap() 공개 정적인 메소드

Snap a Vector3 to the nearest point on the current ProGrids grid if ProGrids is enabled, with mask.
public static ProGridsSnap ( Vector3 point, Vector3 mask ) : Vector3
point Vector3
mask Vector3
리턴 Vector3

ProGridsSnap() 공개 정적인 메소드

Snap a Vector3 to the nearest point on the current ProGrids grid if ProGrids is enabled.
public static ProGridsSnap ( float point ) : float
point float
리턴 float

SceneToolbarIsExtended() 공개 정적인 메소드

Is the scene toolbar extended or collapsed? Also check ProGridsActive to see if ProGrids is open in the first place.
public static SceneToolbarIsExtended ( ) : bool
리턴 bool

SnapEnabled() 공개 정적인 메소드

If ProGrids is open and snap enabled, return true. False otherwise.
public static SnapEnabled ( ) : bool
리턴 bool

SnapValue() 공개 정적인 메소드

Return the last known snap value setting from ProGrids.
public static SnapValue ( ) : float
리턴 float

SubscribePushToGridEvent() 공개 정적인 메소드

Subscribe to PushToGrid events.
public static SubscribePushToGridEvent ( Action listener ) : void
listener Action
리턴 void

SubscribeToolbarEvent() 공개 정적인 메소드

Subscribe to toolbar extendo/retracto events. Delegates are called with bool paramater Listener(bool menuOpen);
public static SubscribeToolbarEvent ( Action listener ) : void
listener Action
리턴 void

UnsubscribePushToGridEvent() 공개 정적인 메소드

Remove subscription from PushToGrid events.
public static UnsubscribePushToGridEvent ( Action listener ) : void
listener Action
리턴 void

UnsubscribeToolbarEvent() 공개 정적인 메소드

Remove subscription from extendo/retracto tooblar events.
public static UnsubscribeToolbarEvent ( Action listener ) : void
listener Action
리턴 void

UseAxisConstraints() 공개 정적인 메소드

Returns the current UseAxisConstraints value from ProGrids.
public static UseAxisConstraints ( ) : bool
리턴 bool