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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12