Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.44f1
2022.3.48f1
6000.0.21f1
Issue ID
UUM-83005
Regression
No
UxmlElements not supported when using DLLs
How to reproduce:
1. Open the attached "IN-85035" project
2. Open the UIBuilder window and observe the “Custom Controls (C#)” drop-down menu under the Library section
3. Open the “MyLibrary” directory under Project files and observe the “TestVisInLibrary.cs” file
Expected result: TestVisInLibrary.cs is visible using the UIBuilder window inside the Editor
Actual result: UxmlElements inside DLLs are unsupported, making TestVisLibrary.cs invisible in the UIBuilder window
Reproducible in: 2021.3.44f1, 2022.3.48f1, 6000.0.21f1
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested
Workaround: Provided by the developer - [https://discussions.unity.com/t/ui-toolkit-serialization-and-library-compilation-dll-support/1524794|https://discussions.unity.com/t/ui-toolkit-serialization-and-library-compilation-dll-support/1524794|smart-link]
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
- [Linux] "Failed to find a suitable OpenCL device, baking cannot use GPU lightmapper." error thrown in the Console window when creating new project using VR Template
- [iOS] Static Batched meshes have increased in size
Resolution Note:
The information provided in the Discussions thread is the way to support the code generated for serialization in DLLs. The code generator needs to run during the DLL compilation process. We plan on adding a documentation page in the manual to make this information more available and we will add versioning on UxmlSerializedData to help detect some issues with generated code.