Class HandleUtility
Inheritance
HandleUtility
Assembly: UnityEditor.dll
Syntax
public sealed class HandleUtility
Properties
|
Improve this Doc
View Source
acceleration
Declaration
public static float acceleration { get; }
Property Value
|
Improve this Doc
View Source
handleMaterial
Declaration
public static Material handleMaterial { get; }
Property Value
|
Improve this Doc
View Source
nearestControl
Declaration
public static int nearestControl { get; set; }
Property Value
|
Improve this Doc
View Source
niceMouseDelta
Declaration
public static float niceMouseDelta { get; }
Property Value
|
Improve this Doc
View Source
niceMouseDeltaZoom
Declaration
public static float niceMouseDeltaZoom { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddControl(Int32, Single)
Declaration
public static void AddControl(int controlId, float distance)
Parameters
|
Improve this Doc
View Source
AddDefaultControl(Int32)
Declaration
public static void AddDefaultControl(int controlId)
Parameters
Type |
Name |
Description |
Int32 |
controlId |
|
|
Improve this Doc
View Source
CalcLineTranslation(Vector2, Vector2, Vector3, Vector3)
Declaration
public static float CalcLineTranslation(Vector2 src, Vector2 dest, Vector3 srcPosition, Vector3 constraintDir)
Parameters
Returns
|
Improve this Doc
View Source
ClosestPointToArc(Vector3, Vector3, Vector3, Single, Single)
Declaration
public static Vector3 ClosestPointToArc(Vector3 center, Vector3 normal, Vector3 from, float angle, float radius)
Parameters
Returns
|
Improve this Doc
View Source
ClosestPointToDisc(Vector3, Vector3, Single)
Declaration
public static Vector3 ClosestPointToDisc(Vector3 center, Vector3 normal, float radius)
Parameters
Returns
|
Improve this Doc
View Source
ClosestPointToPolyLine(Vector3[])
Declaration
public static Vector3 ClosestPointToPolyLine(params Vector3[] vertices)
Parameters
Type |
Name |
Description |
Vector3[] |
vertices |
|
Returns
DistancePointBezier(Vector3, Vector3, Vector3, Vector3, Vector3)
Declaration
public static float DistancePointBezier(Vector3 point, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent)
Parameters
Returns
|
Improve this Doc
View Source
DistancePointLine(Vector3, Vector3, Vector3)
Declaration
public static float DistancePointLine(Vector3 point, Vector3 lineStart, Vector3 lineEnd)
Parameters
Returns
|
Improve this Doc
View Source
DistancePointToLine(Vector2, Vector2, Vector2)
Declaration
public static float DistancePointToLine(Vector2 p, Vector2 a, Vector2 b)
Parameters
Returns
|
Improve this Doc
View Source
DistancePointToLineSegment(Vector2, Vector2, Vector2)
Declaration
public static float DistancePointToLineSegment(Vector2 p, Vector2 a, Vector2 b)
Parameters
Returns
|
Improve this Doc
View Source
DistanceToArc(Vector3, Vector3, Vector3, Single, Single)
Declaration
public static float DistanceToArc(Vector3 center, Vector3 normal, Vector3 from, float angle, float radius)
Parameters
Returns
|
Improve this Doc
View Source
DistanceToCircle(Vector3, Single)
Declaration
public static float DistanceToCircle(Vector3 position, float radius)
Parameters
Returns
|
Improve this Doc
View Source
DistanceToDisc(Vector3, Vector3, Single)
Declaration
public static float DistanceToDisc(Vector3 center, Vector3 normal, float radius)
Parameters
Returns
|
Improve this Doc
View Source
DistanceToLine(Vector3, Vector3)
Declaration
public static float DistanceToLine(Vector3 p1, Vector3 p2)
Parameters
Returns
|
Improve this Doc
View Source
DistanceToPolyLine(Vector3[])
Declaration
public static float DistanceToPolyLine(params Vector3[] points)
Parameters
Type |
Name |
Description |
Vector3[] |
points |
|
Returns
|
Improve this Doc
View Source
DistanceToRectangle(Vector3, Quaternion, Single)
Declaration
public static float DistanceToRectangle(Vector3 position, Quaternion rotation, float size)
Parameters
Returns
|
Improve this Doc
View Source
GetHandleSize(Vector3)
Declaration
public static float GetHandleSize(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
|
Improve this Doc
View Source
GUIPointToScreenPixelCoordinate(Vector2)
Declaration
public static Vector2 GUIPointToScreenPixelCoordinate(Vector2 guiPoint)
Parameters
Type |
Name |
Description |
Vector2 |
guiPoint |
|
Returns
|
Improve this Doc
View Source
GUIPointToWorldRay(Vector2)
Declaration
public static Ray GUIPointToWorldRay(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
Returns
|
Improve this Doc
View Source
PickGameObject(Vector2, Boolean)
Declaration
public static GameObject PickGameObject(Vector2 position, bool selectPrefabRoot)
Parameters
Returns
|
Improve this Doc
View Source
PickGameObject(Vector2, Boolean, GameObject[])
Declaration
public static GameObject PickGameObject(Vector2 position, bool selectPrefabRoot, GameObject[] ignore)
Parameters
Returns
|
Improve this Doc
View Source
PickGameObject(Vector2, out Int32)
Declaration
public static GameObject PickGameObject(Vector2 position, out int materialIndex)
Parameters
Returns
|
Improve this Doc
View Source
PickGameObject(Vector2, GameObject[], out Int32)
Declaration
public static GameObject PickGameObject(Vector2 position, GameObject[] ignore, out int materialIndex)
Parameters
Returns
|
Improve this Doc
View Source
PickRectObjects(Rect)
Declaration
public static GameObject[] PickRectObjects(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
|
Improve this Doc
View Source
PickRectObjects(Rect, Boolean)
Declaration
public static GameObject[] PickRectObjects(Rect rect, bool selectPrefabRootsOnly)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Boolean |
selectPrefabRootsOnly |
|
Returns
|
Improve this Doc
View Source
PointOnLineParameter(Vector3, Vector3, Vector3)
Declaration
public static float PointOnLineParameter(Vector3 point, Vector3 linePoint, Vector3 lineDirection)
Parameters
Returns
|
Improve this Doc
View Source
PopCamera(Camera)
Declaration
public static void PopCamera(Camera camera)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
|
Improve this Doc
View Source
ProjectPointLine(Vector3, Vector3, Vector3)
Declaration
public static Vector3 ProjectPointLine(Vector3 point, Vector3 lineStart, Vector3 lineEnd)
Parameters
Returns
|
Improve this Doc
View Source
PushCamera(Camera)
Declaration
public static void PushCamera(Camera camera)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
|
Improve this Doc
View Source
RaySnap(Ray)
Declaration
public static object RaySnap(Ray ray)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Returns
|
Improve this Doc
View Source
Repaint()
Declaration
public static void Repaint()
|
Improve this Doc
View Source
WorldPointToSizedRect(Vector3, GUIContent, GUIStyle)
Declaration
public static Rect WorldPointToSizedRect(Vector3 position, GUIContent content, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
WorldToGUIPoint(Vector3)
Declaration
public static Vector2 WorldToGUIPoint(Vector3 world)
Parameters
Type |
Name |
Description |
Vector3 |
world |
|
Returns
|
Improve this Doc
View Source
WorldToGUIPointWithDepth(Vector3)
Declaration
public static Vector3 WorldToGUIPointWithDepth(Vector3 world)
Parameters
Type |
Name |
Description |
Vector3 |
world |
|
Returns
Extension Methods