Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Particle System Error

Discussion in 'Editor & General Support' started by JRRReynolds, Jan 4, 2018.

  1. JRRReynolds

    JRRReynolds

    Joined:
    Oct 29, 2014
    Posts:
    192
    Hi, I am getting a particle system error in brand new projects with nothing in them. This was tested in 5.6.4p3, 5.6.4p4, 5.6.5f1.

    If I open a brand new project, create a particle system, then delete it in hierarchy, I get the following error:

    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)

    Was wondering if there was some kind of fix for this. Thanks.