Hello,
I’ve created a custom scrollbar style that is big enough to accept text inside it.
That way, it can display something like that :
||########300/500###____||
Unfortunatly, you can’t add a GUIContent when you use GUI.HorizontalScrollbar( ) .
When I don’t use layout, it’s not a problem :
GUI.HorizontalScrollbar( _rect, 0, value, 0, maxValue );
GUI.Label( _rect, value + " / " + _maxValue );
It works fine.
But now, I’m creating a GUI where my scrollbar is inside a GUILayout.BeginScrollView( )
And I don’t know how to overlay two elements inside a GUILayout.
Is it possible to insert some GUI elements inside a GUILayout?
I wish I could do something like that :
GUILayout.BeginScrollView( ... );
[...]
GUILayout.BeginStaticSpace( width, height )
GUI.HorizontalScrollbar( _rect, 0, value, 0, maxValue );
GUI.Label( _rect, value + " / " + _maxValue );
GUILayout.EndStaticSpace();
[...]
GUILayout.EndScrollView();
But BeginStaticSpace doesn’t exits
Is there something similar inside the toolkit ?
( or something totally different that enables to overlay some element inside a GUILayout ScrollView )
Thanks in advance.