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
- "Browse" button for Xcode in the "Build Profiles" window is too big
- USS styles fail to inherit correctly when contentContainer is overridden in a custom control
- Copying and pasting Animator Transitions leads to unexpected behaviour
- "ShaderGraph" misses a space in the "Project Settings" section
- UI Builder inspector’s checkbox fields can be activated when clicking anywhere in the value field
Add comment