Click or drag to resize

frame8.ScrollRectItemsAdapter.Util Namespace

 
Classes
  ClassDescription
Public classBaseParamsWithPrefab Obsolete.
This class was moved to frame8.Logic.Misc.Visual.UI.ScrollRectItemsAdapter.BaseParamsWithPrefab. Use it instead (it's the same implementation).
Public classBaseParamsWithPrefabAndDataTData
Public classBaseParamsWithPrefabAndLazyDataTData
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 SRIA: 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 classLazyListT

Very handy List implementation that delays object creation until it's accessed,

although the underlying List is still allocated with all slots from the beginning, only that they have default values - default(T)

Public classLazyListTEnumerableLazyList
Public classLoadSceneOnClick
Added to a GameObject that has a Button component, it loads sceneName scene when the button is clicked
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 classRectTransformEdgeDragger
Public classResizeablePanel
Public classResizeablePanelUnityEventBool
Public classScreenAutoRotationPanel
Public classScrollbarRotateOnPull
Public classShowOnlyOnPortraitOrientation
Public classSimpleFPSCounter
Uses GUILayout to display a FPS counter in top-left
Public classSimpleImageColorBouncer
Smoothly fades back and forth between color a and b
Public classSimpleImageDownloader

A utility singleton class for downloading images using a LIFO queue for the requests. MaxConcurrentRequests can be used to limit the number of concurrent requests.

Default is DEFAULT_MAX_CONCURRENT_REQUESTS. Each request is executed immediately if there's room for it. When the queue is full, the downloder starts checking each second if a slot is freed, after which re-enters the loop.

Public classSimpleImageDownloaderRequest
Public classSimpleImageDownloaderResult
Public classSRIATitle
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