ScrollToSelection

Class in Zigurous.UI

Declaration

public class ScrollToSelection : MonoBehaviour

Description

Handles scrolling a ScrollRect component to the selected child element. This is especially useful for controller support.

Properties

scrollRectThe ScrollRect component being scrolled (Read only).
scrollTransformThe RectTransform component of the scroll rect (Read only).
selectedGameObjectThe current selected game object (Read only).
selectedTransformThe RectTransform of the current selected game object (Read only).
scrollDirectionThe direction to scroll the ScrollRect.
scrollSpeedHow quickly the ScrollRect scrolls.
manualScrollingWhether the ScrollRect is currently being scrolled manually. This allows the user to freely scroll with the mouse even when a child element is selected (Read only).