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
-
stevenkelly619
Aug 25, 2021 17:17
Thanks for this tutorial... i'd give it a trial and give you a feedback
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12