How can I sync the position of a UI element on the stage? I want the scroll to scroll to the item specified in the scene.
Thank you
How can I sync the position of a UI element on the stage? I want the scroll to scroll to the item specified in the scene.
Thank you
Check this repo out:
The ScrollPositionController I think might have what you’re looking for.
If that’s not it, the basic steps you want is to use the RectTransforms of what you’re on and its parent to decide the fraction (e.g., the normalized point) to scroll the UI to.
The RectTransformUtility class has some handy dandy bits useful for this sorta thing.
Thank you