Rotatable Handle

Helper component with handle to rotate for the Rotatable.

Options

  • Interactable bool

    Allow users to change the rotation of the GameObject.

  • Own Handle bool

    If enabled you can specify your own handle for the current component.
    If disabled you can specify Handle Source for current component, this allows you to create a single handle instead of duplicate it for each component.
    Handle should be acquired with GetSourceHandle() and returned with ReleaseSourceHandle() functions.
  • Handle Source RotatableHandle

    Handle source to use if Own Handle disabled.

  • Handle DragListener optional

    Handle.

  • HandleState Func<RotatableHandle, BaseEventData, bool, bool> optional

    Return handle state (enabled/disabled) on select/deselect event (got or lost focus).
    Use case: show Rotatable and Resizable handles only if target (or one of handles) is selected, otherwise deselect.

Events

  • OnStartRotate UnityEvent<Rotatable>

  • OnRotate UnityEvent<Rotatable>

  • OnEndRotate UnityEvent<Rotatable>