Search Issue Tracker
Not Reproducible
Votes
0
Found in
2023.3.0b5
6000.0.0b11
Issue ID
UUM-62520
Regression
No
[VFX] Multi selecting VFX Graph with other scene objects throws MissingComponent exception
Versions tested: 2023.3.0b5
Steps to repro:
1) Create an empty HDRP project
2) Create any VFX graph and drop it into the default scene
3) Marquee select it along with any other scene object (sun light in my case)
4) Observe when multi selected, editor throws an exception about missing component
Stack trace:
MissingComponentException: There is no 'VisualEffect' attached to the "Sun" game object, but a script is trying to access it.
You probably need to add a VisualEffect to the game object "Sun". Or your script needs to check if the component is attached before using it.
UnityEngine.Object+MarshalledUnityObject.TryThrowEditorNullExceptionObject (UnityEngine.Object unityObj, System.String parameterName) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:828)
UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/BindingsHelpers.cs:61)
UnityEngine.VFX.VisualEffect.get_visualEffectAsset () (at <91fec0fc12c945fba1f734bac7012647>:0)
UnityEditor.VFX.UI.VFXViewWindow.AttachTo (UnityEngine.VFX.VisualEffect visualEffect) (at ./Library/PackageCache/com.unity.visualeffectgraph/Editor/GraphView/VFXViewWindow.cs:210)
UnityEditor.VFX.AdvancedVisualEffectEditor.AutoAttachToSelection () (at ./Library/PackageCache/com.unity.visualeffectgraph/Editor/Inspector/AdvancedVisualEffectEditor.cs:744)
UnityEditor.VFX.AdvancedVisualEffectEditor.OnHierarchySelectionChanged () (at ./Library/PackageCache/com.unity.visualeffectgraph/Editor/Inspector/AdvancedVisualEffectEditor.cs:160)
UnityEditor.Selection.Internal_CallSelectionChanged () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Selection/Selection.cs:38)
Comments (1)
-
SBoA38
Jul 10, 2025 00:09
in 60000.0.37f1 I can reproduce the issue. clicking an object with a VFX graph on it in the hierarchy and then clicking on a sibling or child object spawns the same error as above. The Key step is the VFX Graph window must be open editing that VFX
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note:
We are unable to reproduce this issue consistently and have not found a reliable way to replicate it.