C# Class UnityEditor.RectHandles

Exibir arquivo Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
AngleAroundAxis ( Vector3 dirA, Vector3 dirB, Vector3 axis ) : float
DrawDottedLineWithShadow ( Color shadowColor, Vector2 screenOffset, Vector3 p1, Vector3 p2, float screenSpaceSize ) : void
DrawPolyLineWithShadow ( Color shadowColor, Vector2 screenOffset ) : void
PivotHandleCap ( int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType ) : void
RectScalingHandleCap ( int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType ) : void
RenderRectWithShadow ( bool active ) : void
RotationSlider ( int id, Vector3 cornerPos, float rotation, Vector3 pivot, Vector3 handleDir, Vector3 outwardsDir1, Vector3 outwardsDir2, float handleSize, Handles drawFunc, Vector2 snap ) : float

Private Methods

Method Description
CornerSlider ( int id, Vector3 cornerPos, Vector3 handleDir, Vector3 outwardsDir1, Vector3 outwardsDir2, float handleSize, Handles drawFunc, Vector2 snap ) : Vector3
DetectCursorChange ( int id ) : void
DrawImageBasedCap ( int controlID, Vector3 position, Quaternion rotation, float size, GUIStyle normal, GUIStyle active ) : void
GetScaleCursor ( Vector2 direction ) : MouseCursor
HandleDirectionalCursor ( Vector3 handlePosition, Vector3 handlePlaneNormal, Vector3 direction ) : void
RaycastGUIPointToWorldHit ( Vector2 guiPoint, Plane plane, Vector3 &hit ) : bool
SideSlider ( int id, Vector3 position, Vector3 sideVector, Vector3 direction, float size, Handles capFunction, float snap ) : Vector3
SideSlider ( int id, Vector3 position, Vector3 sideVector, Vector3 direction, float size, Handles capFunction, float snap, float bias ) : Vector3
WorldToScreenSpaceDir ( Vector3 worldPos, Vector3 worldDir ) : Vector2

Method Details

AngleAroundAxis() public static method

public static AngleAroundAxis ( Vector3 dirA, Vector3 dirB, Vector3 axis ) : float
dirA Vector3
dirB Vector3
axis Vector3
return float

DrawDottedLineWithShadow() public static method

public static DrawDottedLineWithShadow ( Color shadowColor, Vector2 screenOffset, Vector3 p1, Vector3 p2, float screenSpaceSize ) : void
shadowColor Color
screenOffset Vector2
p1 Vector3
p2 Vector3
screenSpaceSize float
return void

DrawPolyLineWithShadow() public static method

public static DrawPolyLineWithShadow ( Color shadowColor, Vector2 screenOffset ) : void
shadowColor Color
screenOffset Vector2
return void

PivotHandleCap() public static method

public static PivotHandleCap ( int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType ) : void
controlID int
position Vector3
rotation UnityEngine.Quaternion
size float
eventType EventType
return void

RectScalingHandleCap() public static method

public static RectScalingHandleCap ( int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType ) : void
controlID int
position Vector3
rotation UnityEngine.Quaternion
size float
eventType EventType
return void

RenderRectWithShadow() public static method

public static RenderRectWithShadow ( bool active ) : void
active bool
return void

RotationSlider() public static method

public static RotationSlider ( int id, Vector3 cornerPos, float rotation, Vector3 pivot, Vector3 handleDir, Vector3 outwardsDir1, Vector3 outwardsDir2, float handleSize, Handles drawFunc, Vector2 snap ) : float
id int
cornerPos Vector3
rotation float
pivot Vector3
handleDir Vector3
outwardsDir1 Vector3
outwardsDir2 Vector3
handleSize float
drawFunc Handles
snap Vector2
return float