Class ScrollViewZoomFixer
Utility class to fix issues with ScrollRects when adjusting scale with ZOOM animation specifically. Optionally will always scroll to top of a ScrollRect when a Page enters.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ScrollViewZoomFixer
Namespace: LlamaSoftware.UI
Assembly: LlamaSoftware.UI.dll
Syntax
public class ScrollViewZoomFixer : MonoBehaviour
Fields
ForceScrollToStart
If you would like to force scrolling to the top or not
Declaration
public bool ForceScrollToStart
Field Value
| Type | Description |
|---|---|
| System.Boolean |
ScrollView
The ScrollRect to operate on
Declaration
public ScrollRect ScrollView
Field Value
| Type | Description |
|---|---|
| UnityEngine.UI.ScrollRect |
Methods
PostPushPage()
Bind to PostPushPage to fix ScrollView issues with ZOOM animation
Declaration
public void PostPushPage()
PrePopPage()
Bind to PrePopPage to fix ScrollView issues with ZOOM animation
Declaration
public void PrePopPage()