# UI Builder Compatibility with Highrise UI Elements in Unity

**URL:** <https://createforum.highrise.game/t/ui-builder-compatibility-with-highrise-ui-elements-in-unity/2153>\
**Category:** Builders\
**Tags:** studio\
**Created:** [November 8, 2024, 2:17pm UTC](https://createforum.highrise.game/t/ui-builder-compatibility-with-highrise-ui-elements-in-unity/2153 "2024-11-08T14:17:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asad\_Games](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Asad\_Games](https://createforum.highrise.game/u/Asad_Games)\
**Post date:** [November 8, 2024, 2:17pm UTC](https://createforum.highrise.game/t/ui-builder-compatibility-with-highrise-ui-elements-in-unity/2153/1 "2024-11-08T14:17:16Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Hsein](https://yyz2.discourse-cdn.com/flex036/user_avatar/createforum.highrise.game/hsein/32/354_2.png) [@Hsein](https://createforum.highrise.game/u/Hsein)\
**Post date:** [November 8, 2024, 2:19pm UTC](https://createforum.highrise.game/t/ui-builder-compatibility-with-highrise-ui-elements-in-unity/2153/2 "2024-11-08T14:19:02Z")

</div>

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](https://create.highrise.game/learn/studio/create/ui/creating-your-first-ui).

Happy creating!

---

<div class="post-metadata">

**Author:** ![Asad\_Games](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Asad\_Games](https://createforum.highrise.game/u/Asad_Games)\
**Post date:** [November 8, 2024, 3:14pm UTC](https://createforum.highrise.game/t/ui-builder-compatibility-with-highrise-ui-elements-in-unity/2153/3 "2024-11-08T15:14:48Z")

</div>

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:

```auto
<?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>

```

---

<div class="post-metadata">

**Author:** ![Arylux](https://yyz2.discourse-cdn.com/flex036/user_avatar/createforum.highrise.game/arylux/32/285_2.png) [@Arylux](https://createforum.highrise.game/u/Arylux)\
**Post date:** [November 13, 2024, 1:49pm UTC](https://createforum.highrise.game/t/ui-builder-compatibility-with-highrise-ui-elements-in-unity/2153/4 "2024-11-13T13:49:09Z")

</div>

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?
