Com.ForbiddenByte.OSA.Util Namespace |
Class | Description | |
---|---|---|
DiscreteScrollbar |
Important note: if used with ScrollbarFixer8 (which is true in the most cases,
make sure minSize is not too small
| |
DiscreteScrollbarUnityIntEvent | ||
ExpandCollapseOnClick |
Utility to expand an item when it's clicked, dispatching the size change request via ExpandCollapseOnClickISizeChangesHandler for increased flexibility
Known issue when used with OSA: when during collapsing the item goes outside viewport, the animation stales, since the views are recycled.
This can be solved by having a separate resizing utility script that's not attached to a recycling-prone object.
| |
ExpandCollapseOnClickUnityFloatEvent | ||
InputFieldInScrollRectFixer |
Utility that allows dragging a ScrollRect even if the PointerDown event has started inside a child InputField (which cancels the dragging by default)
| |
LongClickableItem |
Utility to delegate the "long click" event to longClickListener
It requires a graphic component (can be an image with zero alpha) that can be clicked in order to receive OnPointerDown, OnPointerUp etc.
No other UI elements should be on top of this one in order to receive pointer callbacks
| |
ScrollbarRotateOnPull |
Interface | Description | |
---|---|---|
ExpandCollapseOnClickISizeChangesHandler | Interface to implement by the class that'll handle the size changes when the animation runs | |
LongClickableItemIItemLongClickListener | Interface to implement by the class that'll handle the long click events |
Enumeration | Description | |
---|---|---|
ExpandCollapseOnClickNonExpandedSizeSource | ||
LongClickableItemStateEnum |