Class SpriteShapeHandleUtility
Inheritance
System.Object
SpriteShapeHandleUtility
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Syntax
public class SpriteShapeHandleUtility
Methods
DistanceToArcWidth(Vector2, Vector2, Single, Single, Single, Single, Single)
Declaration
public static float DistanceToArcWidth(Vector2 position, Vector2 center, float start, float end, float radius, float width, float angleOffet)
Parameters
| Type |
Name |
Description |
| Vector2 |
position |
|
| Vector2 |
center |
|
| System.Single |
start |
|
| System.Single |
end |
|
| System.Single |
radius |
|
| System.Single |
width |
|
| System.Single |
angleOffet |
|
Returns
| Type |
Description |
| System.Single |
|
DistanceToRectangle(Vector3, Quaternion, Vector2)
Declaration
public static float DistanceToRectangle(Vector3 position, Quaternion rotation, Vector2 size)
Parameters
| Type |
Name |
Description |
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| Vector2 |
size |
|
Returns
| Type |
Description |
| System.Single |
|
DrawRangeOutline(Single, Single, Single, Vector2, Single, Single)
Declaration
public static void DrawRangeOutline(float start, float end, float angleOffset, Vector2 center, float radius, float width)
Parameters
| Type |
Name |
Description |
| System.Single |
start |
|
| System.Single |
end |
|
| System.Single |
angleOffset |
|
| Vector2 |
center |
|
| System.Single |
radius |
|
| System.Single |
width |
|
DrawSolidArc(Vector3, Vector3, Vector3, Single, Single, Single)
Declaration
public static void DrawSolidArc(Vector3 center, Vector3 normal, Vector3 from, float angle, float radius, float width)
Parameters
| Type |
Name |
Description |
| Vector3 |
center |
|
| Vector3 |
normal |
|
| Vector3 |
from |
|
| System.Single |
angle |
|
| System.Single |
radius |
|
| System.Single |
width |
|
DrawTextureArc(Texture, Single, Vector3, Vector3, Vector3, Single, Single)
Declaration
public static void DrawTextureArc(Texture texture, float pixelsPerRadius, Vector3 center, Vector3 normal, Vector3 from, float angle, float radius)
Parameters
| Type |
Name |
Description |
| Texture |
texture |
|
| System.Single |
pixelsPerRadius |
|
| Vector3 |
center |
|
| Vector3 |
normal |
|
| Vector3 |
from |
|
| System.Single |
angle |
|
| System.Single |
radius |
|
GUITextureCap(Int32, Texture, Vector3, Quaternion, Single, EventType)
Declaration
public static void GUITextureCap(int controlID, Texture texture, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
| Type |
Name |
Description |
| System.Int32 |
controlID |
|
| Texture |
texture |
|
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| System.Single |
size |
|
| EventType |
eventType |
|
PlayHeadCap(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public static void PlayHeadCap(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
| Type |
Name |
Description |
| System.Int32 |
controlID |
|
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| System.Single |
size |
|
| EventType |
eventType |
|
PosToAngle(Vector2, Vector2, Single)
Declaration
public static float PosToAngle(Vector2 position, Vector2 center, float angleOffset)
Parameters
| Type |
Name |
Description |
| Vector2 |
position |
|
| Vector2 |
center |
|
| System.Single |
angleOffset |
|
Returns
| Type |
Description |
| System.Single |
|
RangeLeftCap(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public static void RangeLeftCap(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
| Type |
Name |
Description |
| System.Int32 |
controlID |
|
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| System.Single |
size |
|
| EventType |
eventType |
|
RangeRightCap(Int32, Vector3, Quaternion, Single, EventType)
Declaration
public static void RangeRightCap(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
Parameters
| Type |
Name |
Description |
| System.Int32 |
controlID |
|
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| System.Single |
size |
|
| EventType |
eventType |
|
Slider2D(Int32, Vector2, Vector3, Quaternion, Single, Handles.CapFunction)
Declaration
public static Vector2 Slider2D(int id, Vector2 position, Vector3 capOffset, Quaternion rotation, float size, Handles.CapFunction drawCapFunction)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
| Vector2 |
position |
|
| Vector3 |
capOffset |
|
| Quaternion |
rotation |
|
| System.Single |
size |
|
| Handles.CapFunction |
drawCapFunction |
|
Returns