Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2019.4.7f1
2020.3
2020.3.16f1
2021.1
2021.2
2022.1
Issue ID
1360351
Regression
No
Script referenced by ScriptableObject is null when making changes to the script's code
How to reproduce:
1. Open user-submitted project
2. Open the scene "SamepleScene" (Assets/Scenes/SampleScene.unity)
3. In the Hierarchy window, select the GameObject "TEST"
4. In the Inspector window, observe the Scene Component script (it should display the line "childComponent is: not null (name: Child GO)")
5. Open the script "ChildComponent" (Assets/Code/ChildComponent.cs)
6. Uncomment the 5th line of the script and save it
7. Return to the Unity Editor, select the GameObject "TEST" in the Hierarchy window and observe the Inspector
Expected result: the Scene Component script displays the line "childComponent is: not null (name: Child GO)"
Actual result: the Scene Component script displays the line "childComponent is: NULL"
Reproducible with: 2019.4.7f1, 2019.4.8f1, 2019.4.29f1, 2020.3.16f1, 2021.1.17f1, 2021.2.0b8, 2022.1.0a6
Note: You may need to repeat steps 5 through 7 multiple times (up to 6 times) to reproduce the bug
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 (fix version 2022.1):
Fixed in: 2022.1.0a12