class
GizmoControls
public sealed class GizmoControls Extendable helper to create common gizmos
Methods
Boolean BoundingBox(String name, BBox value, BBox outValue, Boolean outPressed, Boolean allowPlanarResize) Boolean Position(String name, Vector3 position, Vector3 newPos, Rotation? axisRotation = null, Single squareSize = 3) Boolean Arrow(String name, Vector3 axis, Single distance, Single length = 24, Single girth = 6, Single axisOffset = 2, Single cullAngle = 10, Single snapSize = 0, String head = cone) Draw an arrow - return move delta if interacted with
Boolean DragSquare(String name, Vector2 size, Rotation rotation, Vector3 movement, Action drawHandle = null) Manipulate a 2d value by moving on 2 axis
static IDisposable PushFixedScale(Single? scale = null) Boolean Rotate(String name, Rotation value, Rotation newValue) A full 3d rotation gizmo. If rotated will return true and newValue will be the new rotation.
Boolean Rotate(String name, Angles outValue) Boolean RotateSingle(String name, Color color, Single angleDelta, Single size = 19, Boolean useHalfCircle = True) A single rotation axis
Boolean Scale(String name, Single value, Single outValue) A front left up position movement widget. If widget was moved then will return true and out will return the new position.
Boolean Scale(String name, Vector3 value, Vector3 outValue, Rotation? axisRotation = null, Single squareSize = 3) Boolean Sphere(String name, Single radius, Single outRadius, Color color) A scalable sphere gizmo. Returns true if the gizmo was interacted with and outValue will return the new radius.