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
- Animator state transition preview clips are flickering when zooming in
- [Tile Palette] Sprites not rendering when brush tool "Paint a filled box with active brush" is used for the first time
- Adding available Nodes with longer names in Fragment Context window overflow Fragment Context window in Shader Graph
- Longer Shader Graph Property Reference names breaks VFX Graph Output Particle Node
- "DebugAllocatorMode" option changes when changed in another Editor instance
Resolution Note:
We are unable to reproduce this issue consistently and have not found a reliable way to replicate it.