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

Editor helper class containing functions related to drawing things in the Scene View using UnityEditor.Handles. More...

Static Public Member Functions

static bool ScreenToWorldPoint (Plane p, Vector2 screenPos, out Vector3 worldPos)
 Given a plane the rectangle lies upon, convert the given screen coordinates to world coordinates. More...
 
static bool ScreenToWorldPoint (Vector3[] corners, Vector2 screenPos, out Vector3 worldPos)
 Given the widget's corners, convert the given screen coordinates to world coordinates. More...
 
static void DrawSize (Vector3[] worldPos, int width, int height)
 Draw width and height around the rectangle specified by the four world-space corners. More...
 
static void DrawShadowedLine (Plane p, Vector2 screenPos0, Vector2 screenPos1, Color c)
 Draw a shadowed line in the scene view. More...
 
static void DrawShadowedLine (Plane p, Vector3 worldPos0, Vector3 worldPos1, Color c)
 Draw a shadowed line in the scene view. More...
 
static void DrawShadowedLine (Vector3[] corners, Vector3 worldPos0, Vector3 worldPos1, Color c)
 Draw a shadowed line in the scene view. More...
 
static void DrawLine (Plane p, Vector2 v0, Vector2 v1)
 Draw a line in the scene view. More...
 
static void DrawCenteredLabel (Vector3 worldPos, string text)
 Draw a centered label at the specified world coordinates. More...
 
static void DrawCenteredLabel (Vector3 worldPos, string text, float width)
 Draw a centered label at the specified world coordinates. More...
 
static void DrawCenteredLabel (Vector2 screenPos, string text)
 Draw a centered label at the specified screen coordinates. More...
 
static void DrawCenteredLabel (Vector2 screenPos, string text, float width)
 Draw a centered label at the specified screen coordinates. It's expected that this call happens inside Handles.BeginGUI() / Handles.EndGUI(). More...
 

Detailed Description

Editor helper class containing functions related to drawing things in the Scene View using UnityEditor.Handles.

Member Function Documentation

static void NGUIHandles.DrawCenteredLabel ( Vector3  worldPos,
string  text 
)
static

Draw a centered label at the specified world coordinates.

static void NGUIHandles.DrawCenteredLabel ( Vector3  worldPos,
string  text,
float  width 
)
static

Draw a centered label at the specified world coordinates.

static void NGUIHandles.DrawCenteredLabel ( Vector2  screenPos,
string  text 
)
static

Draw a centered label at the specified screen coordinates.

static void NGUIHandles.DrawCenteredLabel ( Vector2  screenPos,
string  text,
float  width 
)
static

Draw a centered label at the specified screen coordinates. It's expected that this call happens inside Handles.BeginGUI() / Handles.EndGUI().

static void NGUIHandles.DrawLine ( Plane  p,
Vector2  v0,
Vector2  v1 
)
static

Draw a line in the scene view.

static void NGUIHandles.DrawShadowedLine ( Plane  p,
Vector2  screenPos0,
Vector2  screenPos1,
Color  c 
)
static

Draw a shadowed line in the scene view.

static void NGUIHandles.DrawShadowedLine ( Plane  p,
Vector3  worldPos0,
Vector3  worldPos1,
Color  c 
)
static

Draw a shadowed line in the scene view.

static void NGUIHandles.DrawShadowedLine ( Vector3[]  corners,
Vector3  worldPos0,
Vector3  worldPos1,
Color  c 
)
static

Draw a shadowed line in the scene view.

static void NGUIHandles.DrawSize ( Vector3[]  worldPos,
int  width,
int  height 
)
static

Draw width and height around the rectangle specified by the four world-space corners.

static bool NGUIHandles.ScreenToWorldPoint ( Plane  p,
Vector2  screenPos,
out Vector3  worldPos 
)
static

Given a plane the rectangle lies upon, convert the given screen coordinates to world coordinates.

static bool NGUIHandles.ScreenToWorldPoint ( Vector3[]  corners,
Vector2  screenPos,
out Vector3  worldPos 
)
static

Given the widget's corners, convert the given screen coordinates to world coordinates.


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