NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
NGUISnap Class Reference

Utility class that makes it easy to perform snapping while dragging widgets. More...

Static Public Member Functions

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...
 

Properties

static bool allow [get, set]
 Whether widgets will snap to edges of other widgets when dragged around. More...
 

Detailed Description

Utility class that makes it easy to perform snapping while dragging widgets.

Member Function Documentation

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.

Property Documentation

bool NGUISnap.allow
staticgetset

Whether widgets will snap to edges of other widgets when dragged around.


The documentation for this class was generated from the following file: