Class CornerHandle
Hierarchy (View Summary)
- GizmoHandle
- CornerHandle
Constructors
constructor
-
Creates a handle for a SlateGizmo
Parameters
- gizmo: SlateGizmo
associated SlateGizmo
- scene: Scene
scene
Returns CornerHandle
- gizmo: SlateGizmo
Accessors
drag
-
set drag(value: boolean): void
Sets drag state
Parameters
- value: boolean
Returns void
gizmo
-
Returns the gizmo carrying this handle
Returns SlateGizmo
hover
-
set hover(value: boolean): void
Sets hover state
Parameters
- value: boolean
Returns void
state
-
The current state of the handle
Returns HandleState
Methods
create Node
-
Creates the meshes and parent node of the handle
Returns any
created node
dispose
-
Disposes the handle
Returns void
set Drag Behavior
-
setDragBehavior(
dragStartFn: (event: { position: Vector3 }) => void,
dragFn: (event: { position: Vector3 }) => void,
dragEndFn: () => void,
): voidBinds callbacks from dragging interaction
Parameters
- dragStartFn: (event: { position: Vector3 }) => void
Function to call on drag start
- dragFn: (event: { position: Vector3 }) => void
Function to call on drag
- dragEndFn: () => void
Function to call on drag end
Returns void
- dragStartFn: (event: { position: Vector3 }) => void
Corner handle that resizes the slate