Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Horizontal layout - fit the view

$
0
0
I'm using horizontal layout UI component to create markers on a slider. What I currently have is the following:

View attachment 213929

However, I would like the markers to start from the beginning and the end of the slider to achieve following:

View attachment 213930

I can do this by altering the spacing variable of the horizontal layout. However, if the amount of markers can change, the spacing value has to be recalculated somehow.

How can I achieve this? Does someone have...

Horizontal layout - fit the view

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>