Editor helper class containing functions related to drawing things in the Scene View using UnityEditor.Handles.
More...
|
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...
|
|
Editor helper class containing functions related to drawing things in the Scene View using UnityEditor.Handles.