O
OneJS2y ago
Singtaa

Ah I see I m not too familiar with UI

Ah I see. I'm not too familiar with UI Toolkit + Sprites. Need to do some research. I'm looking at https://forum.unity.com/threads/feedback-wanted-sprite-assets-support.962958/. Will get back to you in a bit!
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Singtaa
Singtaa2y ago
Yeah, so I think the Unity's recommended way is to use USS files for this You can add your own USS files to ScriptEngine via ScriptEngine's STYLING section If you want more flexibility (especially for runtime), you'd need to wrap your loading logic (via Resources.Load for example). https://stackoverflow.com/a/41315206/150094 I think the uss works fairly well. You can defined your own atlas'ed sprites into different css classes, and then just use the classnames accordingly in JS
Want results from more Discord servers?
Add your server