C# Class UnityEditor.RectTool

Inheritance: ManipulationTool
Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetLocalRectPoint ( Rect rect, int index ) : Vector2
OnGUI ( SceneView view ) : void

Private Methods

Method Description
DistancePointToLineSegment ( Vector2 point, Vector2 a, Vector2 b ) : float
DistanceToRectangle ( Vector2 screenPoints, Vector2 mousePos ) : float
GetRectPointInWorld ( Rect rect, Vector3 pivot, Quaternion rotation, int xHandle, int yHandle ) : Vector3
MoveHandlesGUI ( Rect rect, Vector3 pivot, Quaternion rotation ) : Vector3
PivotHandleGUI ( Rect rect, Vector3 pivot, Quaternion rotation ) : Vector3

Method Details

GetLocalRectPoint() public static method

public static GetLocalRectPoint ( Rect rect, int index ) : Vector2
rect UnityEngine.Rect
index int
return Vector2

OnGUI() public static method

public static OnGUI ( SceneView view ) : void
view SceneView
return void