Curved scrollbar unity ui Toolkit ¡HELP!

Hi.
I want to make something like this:
9012271--1242463--upload_2023-5-14_2-45-56.png
I have only been able to make the scroll by faking it with a visual element. I would like to know if there is an easy way to curve the scrollbar and make the text container also curved affecting the position of the paragraphs.

Please, I’m stuck.

9012271--1242463--upload_2023-5-14_2-45-56.png

There’s some asset store products to do stuff like this.

There might also be something in this repo:

I suppose you could modify the code that makes the text glyphs geometry and bend the vertex positions on a per-line basis, either in UnityEngine.UI or in TextMeshPRO

Or even use a RenderTexture and project the flat image onto curved geometry?

Or I’m sure the shader gods would do it in HLSL or with Shader Graph. :slight_smile:

He’s asking about UI Toolkit though. UI Extensions is uGUI based afaik.

The question would probably be more suitable for the UI Toolkit subforum.
https://forum.unity.com/forums/ui-toolkit.178/
It is dedicated to UI Toolkit questions.

UI Toolkit is still barebone.
“Custom shaders with Shader Graph” is still way down the roadmap. Not to be expected anytime soon, probably more than a year away. Development in UI Toolkit is very slow.
So no, there is no easy way of pushing a few buttons and toggles here and there to create what you want.
If you intend to do this with UI Toolkit you’d have to make it yourself.

Custom shaders with uGUI is possible but difficult if you don’t know HLSL.
There is no Shader Graph for uGUI either. However, you could make a shader with Shader Graph and then modify the result.
But everytime you change the shader in Shader Graph you have to modify it again. Which makes it tedious and painful.
But after bending it in a shader, UI input events won’t be accurate anymore either. So you probably can’t drag the scroll bar itself anymore.
There are just some caveats to curving UI. I know from the Curved UI asset that there was a custom input module required to handle the curved positions and translate them to usable event data.

1 Like

Thanks I would ask on the other forum.