Preview 17: Can't build addressable assets with uidocument in scene


I just installed and tried UI toolkit version 1.0.0-preview.17 to create a runtime UI with the current project I am working on. I created a simple UI in UIBuilder and put it into my scene. 7475201--918965--upload_2021-9-6_21-17-27.png
Unfortunately, I wasn’t able to make a build, as the creation of the addressable assets fails for the scene containing the UI Document Component.
I am using the latest Addressable version 1.19.4.
Here are the error messages in text form:

An asset is marked with HideFlags.DontSave but is included in the build:
Asset: 'Library/unity default resources'
Included from scene: 'Assets/Chapters/Chapter1/Chapter1_Outro.unity'
Asset name: ThemeStyleSheet
(You are probably referencing internal Unity data in your build.)
UnityEditor.GenericMenu:CatchMenu (object,string[],int)
An asset is marked with HideFlags.DontSave but is included in the build:
Asset: 'Library/unity default resources'
Included from scene: 'Assets/Chapters/Chapter1/Chapter1_Outro.unity'
Asset name: VisualTreeAsset
(You are probably referencing internal Unity data in your build.)
UnityEditor.GenericMenu:CatchMenu (object,string[],int)
An asset is marked with HideFlags.DontSave but is included in the build:
Asset: 'Library/unity default resources'
Included from scene: 'Assets/Chapters/Chapter1/Chapter1_Outro.unity'
Asset name: StyleSheet
(You are probably referencing internal Unity data in your build.)
UnityEditor.GenericMenu:CatchMenu (object,string[],int)


7475201--918953--upload_2021-9-6_21-5-35.png
7475201--918956--upload_2021-9-6_21-5-51.png

1 Like

Hi Domigotchi, could you report a repro project with this issue with the bug reporter so we can investigate? Go to Help > Report a bug…
Please post the case number in the thread. Thanks!

I’m having this exact same issue when trying to build addressable asset bundles with the UI Toolkit. My errors are exactly the same as what is reported here too.

An asset is marked with HideFlags.DontSave but is included in the build:
Asset: 'Library/unity default resources'
Included from scene: 'Assets/_mtion/_Scenes/UtilityScenes/UnityAnalyticsScene.unity'
Asset name: ThemeStyleSheet
(You are probably referencing internal Unity data in your build.)
UnityEditor.GenericMenu:CatchMenu (object,string[],int)
An asset is marked with HideFlags.DontSave but is included in the build:
Asset: 'Library/unity default resources'
Included from scene: 'Assets/_mtion/_Scenes/UtilityScenes/UnityAnalyticsScene.unity'
Asset name: StyleSheet
(You are probably referencing internal Unity data in your build.)
UnityEditor.GenericMenu:CatchMenu (object,string[],int)
An asset is marked with HideFlags.DontSave but is included in the build:
Asset: 'Library/unity default resources'
Included from scene: 'Assets/_mtion/_Scenes/UtilityScenes/UnityAnalyticsScene.unity'
Asset name: VisualTreeAsset
(You are probably referencing internal Unity data in your build.)
UnityEditor.GenericMenu:CatchMenu (object,string[],int)

FYI: The referenced scene in the above error is empty. No GameObjects or UI Toolkit asset are referenced in it.

Any updates on this?

Update: I was able to resolve this issue by deleting Assets/AddressableAssetsData folder and then reimplementing the group bundle structure in the Addressable Groups window. Not sure why that worked. Maybe an older AA schema isn’t able to handle imported UI Toolkit assets?