Is this working on mobile yet or am I doing something wrong?
It seems like the styles are ignored on Android.
Only buttons and labels are rendered but not the style defined in the UI builder.
I’m using unity 2020.1.0f1
and “com.unity.ui”: “1.0.0-preview.6”
I used the UI Builder to make the visual tree asset. And styled the elements in the inspector.
It’s a scroll view containing visual elements with text.
It works fine in the editor but this is how it looks like on Android 10 most of the time (sometimes it works):
I noticed the shaders for ui toolkit weren’t included in a build I made and I had to manually include them (though this was likely due to storing the data in addressables)
In theory, our shaders are included through the PanelSettings asset (which should be referenced by UIDocument(s)).
They should have not have to be referenced manually.