Click or drag to resize

ScrollRectItemsAdapter8TParams, TItemViewsHolderSmoothScrollTo Method

Utility to smooth scroll.

Namespace:  frame8.Logic.Misc.Visual.UI.ScrollRectItemsAdapter
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public bool SmoothScrollTo(
	int itemIndex,
	float duration,
	float normalizedOffsetFromViewportStart = 0f,
	Func<float, bool> onProgress = null
)

Parameters

itemIndex
Type: SystemInt32
duration
Type: SystemSingle
normalizedOffsetFromViewportStart (Optional)
Type: SystemSingle
onProgress (Optional)
Type: SystemFuncSingle, Boolean
gets the progress and returns if the scrolling should continue

Return Value

Type: Boolean
if no smooth scroll animation was already playing. if it was, then no new animation will begin
Version Information

Optimized ScrollView Adapter

Supported in: 2.5.2
See Also