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
boolAllow users to interact with the splitter.
Type
SplitterTypeHorizontal: change heights of the game objects.Vertical: change widths of the game objects.
Update RectTransform
boolChange RectTransform size of the left and right game objects.
Update LayoutElement
boolChange LayoutElement size of the left and right game objects.
Drag Button
PointerEventData.InputButtonThe button that should be pressed to process the drag event.
Integer Size
boolIf enabled size is rounded to the integer number.
Mode
SplitterModeAuto: use previous and next siblings in hierarchy.Manual: use specified targets to resize.
Previous Object
RectTransformLeft (or top) object to resize.
Next Object
RectTransformRight (or bottom) object to resize.
Cursors
CursorsCursors to use.
Events
OnStartResize
UnityEvent<Splitter>OnResize
UnityEvent<Splitter>OnEndResize
UnityEvent<Splitter>