Search Issue Tracker
Fixed
Unknown (hidden) 2021.3.X
Fixed in 2020.3.39f1
Votes
0
Found in
2020.3.37f1
2021.3.6f1
Issue ID
UUM-10043
Regression
No
[Backport] GameObject reference is null when creating it inside Reset() function and assigning Script as component
GameObject reference is null when creating it inside Reset() function and assigning Script as a component when there is Timeline window opened in the Editor
How to reproduce:
1. Open user's project "ResetTest.zip"
2. Open "SampleScene" Scene
3. Click on "GameObject" in the Hierarchy window
4. In the Inspector window, right-click on "New Behaviour Script" and choose Reset
5. Observe console
6. Remove the "New Behaviour Script" component from the "GameObject"
7. Add "New Behaviour Script" Script from "Scripts" folder to "GameObject"
8. Observe console
Expected results: Same Console message (Generated GameObject (UnityEngine.GameObject)) after 4th and 7th step
Actual results: Console logs out null
Reproducible with: 2019.4.27f1, 2020.1.17f1, 2020.2.7f1, 2020.3.9f1, 2021.1.0a8, 2021.1.8f1, 2021.2.0a17
Couldn't test with: 2018.4 (Failed to downgrade to a functioning project)
Note: Closing Timeline window results in same Console message both after 4th and 7th step
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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Resolution Note (2021.3.X):
This issue is not reproducible in the 2021.3 stream.
Resolution Note (fix version 2020.3.39f1):
Fixed in: 2020.3.39f1