API Referenceglobal
public sealed class Sandbox.Gizmo.GizmoControls
Extendable helper to create common gizmos
Methods
Showing 14 methods
public bool Arrow(string name, Vector3 axis, 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
Parameters
length: Default: 24girth: Default: 6axisOffset: Default: 2cullAngle: Default: 10snapSize: Default: 0head: Default: cone
public bool DragSquare(string name, Vector2 size, Rotation rotation, Vector3 movement, System.Action drawHandle = null)
Manipulate a 2d value by moving on 2 axis
Parameters
drawHandle: Default: null
public bool Position(string name, Vector3 position, Vector3 newPos, System.Nullable`1<Rotation> axisRotation = null, float squareSize = 3)
Parameters
axisRotation: Default: nullsquareSize: Default: 3
public static System.IDisposable PushFixedScale(System.Nullable`1<float> scale = null)
Parameters
scale: Default: null
public bool RotateSingle(string name, Color color, float angleDelta, float size = 19, bool useHalfCircle = True)
A single rotation axis
Parameters
size: Default: 19useHalfCircle: Default: True
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Gizmo.GizmoControls |