Search Issue Tracker
Won't Fix
Votes
0
Found in
5.6.5p1
Issue ID
989219
Regression
Yes
[Editor] Missing reference exception occurs on deleting particle system
Missing reference exception occurs on deleting particle system
Steps to Repro:
1. Open attached project or Create a new scene
2. Hierarchy > Right Click > Particle System
3. Delete the particle system and observe the error
Note:
This also causes build to fail sometimes with the following stack trace
Error building Player: MissingReferenceException: The object of type 'ParticleSystem' 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
Occurring with:
5.6.5p1, 5.6.4p3, 5.6.3p2
Working with:
2018.1.0b4, 2017.3.0p2, 2017.2.1p2, 2017.1.3f1, 5.6.0p4, 5.6.3p1
Environment:
Occurring on Windows & Mac
Stack Trace:
MissingReferenceException: The object of type 'ParticleSystem' 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.Component.GetComponent[ParticleSystemRenderer] () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/ComponentBindings.gen.cs:48)
UnityEditor.ParticleEffectUI.RefreshShowOnlySelected () (at C:/buildslave/unity/build/Editor/Mono/ParticleSystemEditor/ParticleEffectUI.cs:1016)
UnityEditor.ParticleEffectUI.SetShowOnlySelectedMode (Boolean enable) (at C:/buildslave/unity/build/Editor/Mono/ParticleSystemEditor/ParticleEffectUI.cs:997)
UnityEditor.ParticleEffectUI.Clear () (at C:/buildslave/unity/build/Editor/Mono/ParticleSystemEditor/ParticleEffectUI.cs:310)
UnityEditor.ParticleSystemInspector.OnDisable () (at C:/buildslave/unity/build/Editor/Mono/ParticleSystemEditor/ParticleSystemEditor.cs:64)
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
- "Property (urp_ReflProbes_BoxMin) exceeds previous array size" warning spams console after switching platforms
- Have to change Input Mapping Path twice for change to take effect when Auto-Save is enabled
- No Duplicate option is available when right clicking States in the Animator Window even though it's available via Shortcut
- Copied and Pasted States appear in a set location instead of where the Users cursor is located at when using the Pasting Shortcut
- Animator Component information box text is not centered
manup
May 28, 2018 11:46
Restarting Unity fixed it :)
manup
May 28, 2018 11:43
Still happening in 5.6.5f1. The same error word by word. Cant build my project