Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2020.1.X
Votes
0
Found in
2020.1.0b2
2020.2
2020.2.0a15
Issue ID
1254599
Regression
Yes
[Shuriken] MissingReferenceException thrown when undo operation is performed with Particle System object
When "Show Bounds" Enabled or Disabled earlier from Particle Effect Panel in the scene view and Undo operation is performed then it causes the editor to throw MissingReferenceException, refer the attached video.
Steps to repro:
1. Create a new project.
2. Hierarchy > Create > Effect > Particle System
3. Scene View > Particle Effect panel > Show Bounds, Show Only Selected > Enable OR Disable
4. Edit > Undo Create Particle System
Actual Result:
MissingReferenceException is thrown on performing Undo operation when Show Bounds Enabled or Disabled earlier from Particle Effect Panel
Expected Result:
Undo operation is performed gracefully with Particle System GameObject
Occurring on:
2020.2.0a14, 2020.1.0b12, 2020.1.0b2
Working fine in:
2020.1.0b1, 2019.3.15f1
Environment:
Occurs only on Windows 10
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.
UnityEditor.ParticleEffectUI.PlayBackInfoGUI (System.Boolean isPlayMode) (at <feb76e495af340bfbdc89fc2ad1b8ae4>:0)
UnityEditor.ParticleEffectUI.PlayStopGUI () (at <feb76e495af340bfbdc89fc2ad1b8ae4>:0)
UnityEditor.ParticleEffectUI.SceneViewGUICallback (UnityEngine.Object target, UnityEditor.SceneView sceneView) (at <feb76e495af340bfbdc89fc2ad1b8ae4>:0)
UnityEditor.SceneViewOverlay.WindowTrampoline (System.Int32 id) (at <feb76e495af340bfbdc89fc2ad1b8ae4>:0)
UnityEngine.GUILayout+LayoutedWindow.DoWindow (System.Int32 windowID) (at <9e3b197786024cdcb531b292c5998102>:0)
UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI+WindowFunction func, System.Int32 id, System.Int32 instanceID, UnityEngine.GUISkin _skin, System.Int32 forceRect, System.Single width, System.Single height, UnityEngine.GUIStyle style) (at <9e3b197786024cdcb531b292c5998102>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment