Hi everyone! I’m working on a project in Unity that involves Highrise custom UI elements (like hr:UILuaView and hr:UIButton) in my UXML files. I’ve run into a compatibility issue when using Unity’s UI Builder for these elements.
When I edit the UXML file directly in a text editor, everything works fine. However, if I open the UXML file in UI Builder, it automatically changes the file format and namespaces, which breaks Highrise compatibility. Here’s an example:
Original code:<hr:UILuaView class="mini-game">
After UI Builder:<Highrise.UI.UILuaView class="mini-game">
This change causes errors when running the game. Does anyone have a workaround for this? Ideally, I’d like to keep using UI Builder for styling and layout since it’s much more convenient than manually editing UXML.
Any tips or solutions on how to get UI Builder and Highrise UI elements to play nicely together would be hugely appreciated!
I’m not sure if you’ve managed to fix this issue yet, but just a heads-up: we don’t support UI Builder. You’ll need to work on UIs using the default UXML and USS pages provided when creating a new UI. For more information, check out this guide.
Thanks for the response.
Just in case if someone having this problem,i have managed to use UI builder by modifying the UXML file each time when i save the file in UI Builder window.Because when UI Builder saves file,it changes the UXML format which Highrise does not support.Below is the working UXML file content:
I tried playing by creating the new UI and then opening the USS and uxml pages inside the UI toolkit, it does load properly but then again any changes made inside the toolkit and when you try to save it, it throws out ’ Unknown type: ‘UnityEngine.UIElements.Highrise.UI.UILuaView’