Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
7.2.0, 7.1.8, 7.1.7
Issue ID
1219420
Regression
Yes
[Visual Effect Graph] NullReferenceException errors are thrown continuously on resetting node preset asset
NullReferenceException errors are thrown continuously on resetting node preset asset.
Steps to repro:
1. Open the attached project > Open Test Scene.
2. Open Test VFX graph.
3. Select & create a preset of "Initialize Particle" node.
4. Reset VFXBasicInitialize asset from the Inspector.
Actual Result:
NullReferenceException errors are thrown in the console.
Expected Result:
No errors in the console.
Reproducible in:
2020.1.0a24(79162fef2e73) & 2019.3.2f1 with Package Version 7.2.0,7.1.8, 7.1.7.
2019.3.0b4 & 2019.3.0a7 with Package Version 7.0.1.
Working fine in:
2019.3.0a6 with Package Version 6.9.2.
Environment:
Occurring on Windows 10 Mac 10.15.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.VFX.VFXBasicInitialize.GetSettings (System.Boolean listHidden, UnityEditor.VFX.VFXSettingAttribute+VisibleFlags flags) (at Library/PackageCache/com.unity.visualeffectgraph@7.1.8/Editor/Models/Contexts/Implementations/VFXBasicInitialize.cs:94)
VFXSlotContainerEditor.DoInspectorGUI () (at Library/PackageCache/com.unity.visualeffectgraph@7.1.8/Editor/Inspector/VFXSlotContainerEditor.cs:39)
VFXContextEditor.DoInspectorGUI () (at Library/PackageCache/com.unity.visualeffectgraph@7.1.8/Editor/Inspector/VFXContextEditor.cs:75)
VFXSlotContainerEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.visualeffectgraph@7.1.8/Editor/Inspector/VFXSlotContainerEditor.cs:177)
VFXContextEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.visualeffectgraph@7.1.8/Editor/Inspector/VFXContextEditor.cs:269)
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass55_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
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
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- “UnityException: GetInvalidFilenameChars” errors are thrown, and the Overlay Save Preset button becomes unusable when entering Play Mode with a shortcut while Overlay Save Preset window is opened
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
Resolution Note:
Plans are to remove nodes from Unity inspector and use graphview inspector to come instead which will have no reset option