Search Issue Tracker
Fixed
Votes
0
Found in
2021.3.36f1
2022.3.21f1
2023.2.14f1
2023.3.0b10
Issue ID
UUM-66028
Regression
No
The callback is called with newValue being null When registering a callback using RegisterValueChangeCallback in EnumField
How to reproduce:
1. Open the attached project "IN-70385.zip"
2. Open Assets/Scenes/SampleScene.unity
3. Select "GameObject" in the Hierarchy window
4. Drag and Drop Assets/TestMonoBehaviour.cs from the Project window onto the "GameObject" in the Hierarchy window
Expected results: "new value ? A" is printed in the Console window
Actual results: "new value ? null" is printed in the Console window
Reproducible with: 2021.3.36f1, 2022.3.21f1, 2023.2.14f1, 2023.3.0b10
Reproducible on: Windows 11 22H2
Not reproducible on: No other environment tested
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note:
Fixed by another internal issue: UUM-14263: Value change callback for VisualElement not called in CreateInspectorGUI with default values after bound