Class SceneGizmos

The SceneGizmos renders gizmos that use the drawGizmo method decorator for the specified Camera.

All decorated methods that are known by the editor will automatically become available. Unlike SceneInteractiveGizmos, the gizmos are passive and only draw extension within the editor.

Hierarchy

  • FrameworkObject
    • SceneGizmos

Constructors

Accessors

Methods

  • Clears the currently selected/active interactive gizmo for the specified camera.

    Returns void

  • Order the gizmo drawing system to draw the current scene.

    Returns void

  • Gets the current gizmo for the specified component. If the component has no active gizmo, null is returned.

    Parameters

    Returns InteractiveGizmo[]

  • Is any interactive gizmo selected/active on the specified camera.

    Returns boolean

  • Notifies this SceneGizmos of a mouse event. Creates a corresponding InteractiveGizmoEvent that is sent to the InteractiveGizmoManager of this SceneGizmos.

    Parameters

    Returns boolean

    True, if the event was handled

  • Register a gizmo.

    Parameters

    Returns void

    To remove the gizmo, call InteractiveGizmo.Destroy.

  • Sets the state of the specified gizmoClasses.

    Parameters

    • gizmoClasses: Type[]
    • isEnabled: boolean

    Returns void

  • Parameters

    Returns void

Events

onGizmoDraw: Event<[], void>

Triggered when the gizmos begin to draw.

Use this event to perform custom Gizmo drawing outside of methods decorated with the `` attribute.