Resizable Handles

Helper component with handles to resize for the Resizable.

Options

  • Interactable bool

    Allow users to change the size of the GameObject.

  • Own Handles bool

    If enabled you can specify your own handles for the current component.
    If disabled you can specify Handles Source for current component, this allows you to create a single set of handles instead of duplicate them for each component.
    Handles should be acquired with GetSourceHandles() and returned with ReleaseSourceHandles() functions.
  • Handles Source ResizableHandles

    Handles source to use if Own Handles disabled.

  • Top Left DragListener optional

    Top left handle.

  • Top Center DragListener optional

    Top center handle.

  • Top Right DragListener optional

    Top right handle.

  • Middle Left DragListener optional

    Middle left handle.

  • Middle Right DragListener optional

    Middle right handle.

  • Bottom Left DragListener optional

    Bottom left handle.

  • Bottom Center DragListener optional

    Bottom center handle.

  • Bottom Right DragListener optional

    Bottom right handle.

  • HandleState Func<ResizableHandles, 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

  • OnStartResize UnityEvent<Resizable>

  • OnResize UnityEvent<Resizable>

  • OnEndResize UnityEvent<Resizable>