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.

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)
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?