Splitter
Note
minWidth
and minHeight
properties of the LayoutElement
to set minimal size of the objects.SplitterMaxSize
component to set the maximum size of the objects. Total maximum size should be less than the total size of the objects.Options
Interactable
bool
Allow users to interact with the splitter.
Type
SplitterType
Horizontal
: change heights of the game objects.Vertical
: change widths of the game objects.
Update RectTransform
bool
Change RectTransform size of the left and right game objects.
Update LayoutElement
bool
Change LayoutElement size of the left and right game objects.
Drag Button
PointerEventData.InputButton
The button that should be pressed to process the drag event.
Integer Size
bool
If enabled size is rounded to the integer number.
Mode
SplitterMode
Auto
: use previous and next siblings in hierarchy.Manual
: use specified targets to resize.
Previous Object
RectTransform
Left (or top) object to resize.
Next Object
RectTransform
Right (or bottom) object to resize.
Cursors
Cursors
Cursors to use.
Events
OnStartResize
UnityEvent<Splitter>
OnResize
UnityEvent<Splitter>
OnEndResize
UnityEvent<Splitter>