Метод | Описание | |
---|---|---|
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 |
public static GetActiveGridAxis ( ) : HandleAxis | ||
Результат | HandleAxis |
public static GetActiveGridOffset ( ) : float | ||
Результат | float |
public static GetPivot ( Vector3 &pivot ) : bool | ||
pivot | Vector3 | |
Результат | bool |
public static GetProGridsInstance ( ) : object | ||
Результат | object |
public static GetProGridsSnapAsGroup ( ) : bool | ||
Результат | bool |
public static GetProGridsType ( ) : Type | ||
Результат | Type |
public static IsFullGridEnabled ( ) : bool | ||
Результат | bool |
public static OnHandleMove ( Vector3 worldDirection ) : void | ||
worldDirection | Vector3 | |
Результат | void |
public static ProGridsSnap ( Vector3 point ) : Vector3 | ||
point | Vector3 | |
Результат | Vector3 |
public static ProGridsSnap ( Vector3 point, Vector3 mask ) : Vector3 | ||
point | Vector3 | |
mask | Vector3 | |
Результат | Vector3 |
public static ProGridsSnap ( float point ) : float | ||
point | float | |
Результат | float |
public static SceneToolbarIsExtended ( ) : bool | ||
Результат | bool |
public static SubscribePushToGridEvent ( Action listener ) : void | ||
listener | Action | |
Результат | void |
public static SubscribeToolbarEvent ( Action listener ) : void | ||
listener | Action | |
Результат | void |
public static UnsubscribePushToGridEvent ( Action listener ) : void | ||
listener | Action | |
Результат | void |
public static UnsubscribeToolbarEvent ( Action listener ) : void | ||
listener | Action | |
Результат | void |
public static UseAxisConstraints ( ) : bool | ||
Результат | bool |