C# Class UnityCommonLibrary.Utility.GizmosUtility

Mostrar archivo Open project: thebeardphantom/UnityCommonLibrary

Public Methods

Method Description
DrawArrow ( Vector3 pos, Vector3 direction, Color color, float arrowHeadLength = 0.25f, float arrowHeadAngle = 20.0f ) : void
DrawArrow ( Vector3 pos, Vector3 direction, float arrowHeadLength = 0.25f, float arrowHeadAngle = 20.0f ) : void
DrawBounds ( Bounds b ) : void
RestoreColor ( ) : void

Restores the stored Gizmos color from StoreColor(Color)

StoreColor ( Color color ) : void

Stores the current Gizmos color and switches to a new color. Used in conjunction with RestoreColor

Method Details

DrawArrow() public static method

public static DrawArrow ( Vector3 pos, Vector3 direction, Color color, float arrowHeadLength = 0.25f, float arrowHeadAngle = 20.0f ) : void
pos UnityEngine.Vector3
direction UnityEngine.Vector3
color UnityEngine.Color
arrowHeadLength float
arrowHeadAngle float
return void

DrawArrow() public static method

public static DrawArrow ( Vector3 pos, Vector3 direction, float arrowHeadLength = 0.25f, float arrowHeadAngle = 20.0f ) : void
pos UnityEngine.Vector3
direction UnityEngine.Vector3
arrowHeadLength float
arrowHeadAngle float
return void

DrawBounds() public static method

public static DrawBounds ( Bounds b ) : void
b UnityEngine.Bounds
return void

RestoreColor() public static method

Restores the stored Gizmos color from StoreColor(Color)
public static RestoreColor ( ) : void
return void

StoreColor() public static method

Stores the current Gizmos color and switches to a new color. Used in conjunction with RestoreColor
public static StoreColor ( Color color ) : void
color UnityEngine.Color
return void