UI Builder Compatibility with Highrise UI Elements in Unity

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!

1 Like

Welcome to the forum, @Asad_Games!

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.

Happy creating!

1 Like

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:

<?xml version="1.0" encoding="utf-8"?>
<UXML
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="UnityEngine.UIElements"
    xmlns:hr="Highrise.UI"
    xmlns:editor="UnityEditor.UIElements"
    xsi:noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd"
>
    <Style src="project://database/Assets/UI/Builder.uss?fileID=7433441132597879392&amp;guid=7fd56c91c3d5c4f95a3dd46b46c01132&amp;type=3#Builder" />
    <hr:UILuaView class="builder">
        <Label text="1/4" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Counter" style="width: 170px; height: 61px; font-size: 31px; align-self: flex-start; align-items: flex-start; background-image: url(&quot;project://database/Assets/sprites.png?fileID=1969799843&amp;guid=bd3006f84a53f4a16acb2f86558e1963&amp;type=3#2207_w026_n002_2198b_p1_2198-removebg-preview_2&quot;);" />
    </hr:UILuaView>
</UXML>
1 Like

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’

Do you think it ll be supported soon?