Utility class that makes it easy to perform snapping while dragging widgets.
More...
|
static void | Recalculate (Object obj) |
| Recalculate all snapping edges. More...
|
|
static Vector3 | Snap (Vector3 pos, Vector3[] local, bool snapToEdges) |
| Snap the X coordinate using the previously calculated snapping edges. More...
|
|
|
static bool | allow [get, set] |
| Whether widgets will snap to edges of other widgets when dragged around. More...
|
|
Utility class that makes it easy to perform snapping while dragging widgets.
static void NGUISnap.Recalculate |
( |
Object |
obj | ) |
|
|
static |
Recalculate all snapping edges.
static Vector3 NGUISnap.Snap |
( |
Vector3 |
pos, |
|
|
Vector3[] |
local, |
|
|
bool |
snapToEdges |
|
) |
| |
|
static |
Snap the X coordinate using the previously calculated snapping edges.
Whether widgets will snap to edges of other widgets when dragged around.
The documentation for this class was generated from the following file:
- D:/Projects/NGUI/Assets/NGUI/Scripts/Editor/NGUISnap.cs