GizmoRenderSystem

GizmoRenderSystem

Renders transform gizmos

Constructor

new GizmoRenderSystem()

Properties:
Name Type Description
doRender boolean

Only render if set to true

Methods

setupCallbacks(callbacks)

Set up callbacks for five gizmos
0 - TranslationGizmo
1 - GlobalTranslationGizmo
2 - RotationGizmo
3 - GlobalRotationGizmo
4 - ScaleGizmo

Parameters:
Name Type Description
callbacks

show(gizmoAnchorEntity, selections)

Display or hide the gizmo

Parameters:
Name Type Description
gizmoAnchorEntity Entity

Blank entity providing a transform to which gizmo renderables will
be attached, and on which transform updates are calculated.

selections Array.<Entity>

Selected entities that have no ancestors selected.