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 withGetSourceHandles()
and returned withReleaseSourceHandles()
functions.Handles Source
ResizableHandles
Handles source to use if Own Handles disabled.
Top Left
DragListener
optionalTop left handle.
Top Center
DragListener
optionalTop center handle.
Top Right
DragListener
optionalTop right handle.
Middle Left
DragListener
optionalMiddle left handle.
Middle Right
DragListener
optionalMiddle right handle.
Bottom Left
DragListener
optionalBottom left handle.
Bottom Center
DragListener
optionalBottom center handle.
Bottom Right
DragListener
optionalBottom right handle.
HandleState
Func<ResizableHandles, BaseEventData, bool, bool>
optionalReturn 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>