HTML + CSS converter to UI-Toolkit

Hey everyone! We’re making a game that uses custom “faces” for all the UI, so UI-Toolkit was a clear choice for us.
As a web developer first, I prefer to develop and maintain the layout and styling in HTML and CSS files. With that in mind, we built a small (and still being worked on) converter using Node.js:

Hope it’s useful for someone else, it does have its limitations and does not support any JavaScript related functionality, the idea is to convert layout and styling only.

4 Likes

Hey brother, Thanks for this tool in advance. I think its a really great tool and will help a lot of devs who struggle to create UI layouts in unity.
I have tried this tool but I am getting following error

Error: ENOENT: no such file or directory, open ‘C:\Users\anike\AppData\Local\npm-cache_npx\d2f02dbdb0794ab6\node_modules\html2uuitk\reset.css’

am I missing something in setup?

Hi shark! Thank you for reporting the problem, just fixed it with v0.1.3 (npx uses the latest), let me know if you run into any other issues

1 Like