Search Issue Tracker
Fixed
Fixed in 2023.3.0a11
Votes
0
Found in
2023.3.0a8
Issue ID
UUM-53267
Regression
No
UxmlObjectReference object fields crash source code generator
Add the following script to a new project
```
using UnityEngine.UIElements;
[UxmlElement]
public partial class Example : VisualElement
{
[UxmlObjectReference]
public object someValue;
}
```
Examine the editor log, the following error will be found:
warning CS8785: Generator 'UxmlSerializedDataGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'NullReferenceException' with message 'Object reference not set to an instance of an object.'
[689/696 0s] ILPostProcess Library/Bee/artifacts/1900b0aEDbg.dag/post-processed/Assembly-CSharp.dll (+pdb)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment