Search Issue Tracker
Fixed
Fixed in 2020.3.47f1, 2021.3.25f1, 2022.2.15f1, 2023.1.0b12, 2023.2.0a9
Votes
0
Found in
2020.3.36f1
2021.3.24f1
2022.2.10f1
2023.1.0b7
2023.2.0a7
Issue ID
UUM-7785
Regression
Yes
"'InstancedComponent' has been destroyed..." error is thrown when re-entering Play mode after saving a Prefab in Play Mode while Domain Reload & Scene reload are disabled
How to reproduce:
# Open the user’s attached project “BugTest.zip”
# Make sure Reload Domain and Reload Scene are disabled in Project Settings… > Editor
# Enter Play mode
# While in Play mode edit the "InstanceTest" Prefab and save the changes
# Exit and re-enter Play mode
# Observe the Console window
Expected results: No error occurs
Actual results: Prefab asset does not appear and an “'Instancnent' has been destroyed but you are still trying to access” error is thrown
Reproducible with: 2020.3.23f1, 2020.3.36f1
Not reproducible with: 2019.4.40f1, 2020.3.22f1, 2021.3.5f1, 2022.1.5f1, 2022.2.0a17
Reproducible on: macOS (Intel) Monterey 12.3.1
Full error:
MissingReferenceException: The object of type 'InstancedComponent' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Object.Instantiate\[T] (T original) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:271)
Instancer.Start () (at Assets/Instancer.cs:10)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Text Object position shifts when selecting multiple Text Objects and expanding the Extra Settings in the Inspector
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
Add comment