Click or drag to resize

Com.ForbiddenByte.OSA.Util Namespace

 
Classes
  ClassDescription
Public classDiscreteScrollbar
Important note: if used with ScrollbarFixer8 (which is true in the most cases, make sure minSize is not too small
Public classDiscreteScrollbarUnityIntEvent
Public classExpandCollapseOnClick
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.
Public classExpandCollapseOnClickUnityFloatEvent
Public classInputFieldInScrollRectFixer
Utility that allows dragging a ScrollRect even if the PointerDown event has started inside a child InputField (which cancels the dragging by default)
Public classLongClickableItem
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
Public classScrollbarRotateOnPull
Interfaces
  InterfaceDescription
Public interfaceExpandCollapseOnClickISizeChangesHandler
Interface to implement by the class that'll handle the size changes when the animation runs
Public interfaceLongClickableItemIItemLongClickListener
Interface to implement by the class that'll handle the long click events
Enumerations