class Gizmo.GizmoControls
Extendable helper to create common gizmos
public bool Arrow( string name, Vector3 axis, ref float distance, float length = 24, float girth = 6, float axisOffset = 2, float cullAngle = 10, float snapSize = 0, string head = cone )
Draw an arrow - return move delta if interacted with
public bool DragSquare( string name, Vector2 size, Rotation rotation, ref Vector3 movement, Action drawHandle = null )
Manipulate a 2d value by moving on 2 axis
public bool Rotate( string name, ref Angles outValue )
A full 3d rotation gizmo. If rotated will return true and newValue will be the new value
public bool RotateSingle( string name, Color color, ref float angleDelta, float size = 19 )
A single rotation axis
public bool Scale( string name, float value, ref float outValue )
A front left up position movement widget. If widget was moved then will return true and out will return the new position.
public bool Sphere( string name, float radius, ref float outRadius, Color color )
A scalable sphere gizmo. Returns true if the gizmo was interacted with and outValue will return the new radius.
public string ToString( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public bool Scale( string name, Vector3 value, ref Vector3 outValue, Nullable<Rotation> axisRotation = null, float squareSize = 3 )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public static IDisposable PushFixedScale( Nullable<float> scale = null )
😔 No documentation found.
public bool DragBox( string name, Vector3 size, Rotation rotation, ref Vector3 movement )
😔 No documentation found.
public bool Position( string name, Vector3 position, ref Vector3 newPos, Nullable<Rotation> axisRotation = null, float squareSize = 3 )
😔 No documentation found.
public bool Capsule( string name, Capsule capsule, ref Capsule outCapsule, Color color )
😔 No documentation found.
public bool BoundingBox( string name, BBox value, ref BBox outValue, ref bool outPressed )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public bool BoundingBox( string name, BBox value, ref BBox outValue )
😔 No documentation found.