Search Issue Tracker
By Design
By Design in 2023.1.X
Votes
0
Found in
2022.2.0a17
2023.1.0a1
Issue ID
UUM-3423
Regression
No
NullReferenceException' is thrown on compilation when 'EditorStyles.foldout' is called
Reproduction steps:
1. Open the attached '1412430-sample' project
2. Open the 'SampleScene'
3. Enter Play mode to trigger the recompilation of the script
Expected result: No errors are in the Console
Actual result: 'NullReferenceException: Object reference not set to an instance of an object' is in the Console
Reproducible with: 2019.4.37f1, 2020.3.32f1, 2021.3.0f1, 2022.1.0b14, 2022.2.0a9
note: low usage feature and uitk is recommended, closed?
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
GUIStyle(EditorStyles.foldout) needs to be initialized in the Start(), it is intended the style value is assigned during this phase.
Resolution Note (2023.1.X):
GUIStyle(EditorStyles.foldout) needs to be initialized in the Start(), it is intended the style value is assigned during this phase.