C# Class UnityEditorInternal.SpriteEditorUtility

显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
BeginLines ( Color color ) : void
ClampedRect ( Rect rect, Rect clamp, bool maintainSize ) : Rect
DrawBox ( Rect position ) : void
DrawLine ( Vector3 p1, Vector3 p2 ) : void
EndLines ( ) : void
GetPivotValue ( SpriteAlignment alignment, Vector2 customOffset ) : Vector2
RoundToInt ( Rect r ) : Rect
RoundedRect ( Rect rect ) : Rect

Method Details

BeginLines() public static method

public static BeginLines ( Color color ) : void
color Color
return void

ClampedRect() public static method

public static ClampedRect ( Rect rect, Rect clamp, bool maintainSize ) : Rect
rect UnityEngine.Rect
clamp UnityEngine.Rect
maintainSize bool
return UnityEngine.Rect

DrawBox() public static method

public static DrawBox ( Rect position ) : void
position UnityEngine.Rect
return void

DrawLine() public static method

public static DrawLine ( Vector3 p1, Vector3 p2 ) : void
p1 Vector3
p2 Vector3
return void

EndLines() public static method

public static EndLines ( ) : void
return void

GetPivotValue() public static method

public static GetPivotValue ( SpriteAlignment alignment, Vector2 customOffset ) : Vector2
alignment SpriteAlignment
customOffset Vector2
return Vector2

RoundToInt() public static method

public static RoundToInt ( Rect r ) : Rect
r UnityEngine.Rect
return UnityEngine.Rect

RoundedRect() public static method

public static RoundedRect ( Rect rect ) : Rect
rect UnityEngine.Rect
return UnityEngine.Rect