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
- Crash when attempting to create a custom FMOD DSP unit
- [Linux] Floating windows do not keep their size after restarting the Editor
- .framework plugin is mistakenly treated as a directory when building for Universal Windows Platform
- Artifacts appear on GameObjects when using the WebGL Player on Silicon macOS
- Only the icon of the disabled child GameObject is faded when a parent GameObject is a Prefab
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