Copyright © 2026 Unity Technologies
Thank you for reporting a bug to Unity. We have investigated the issue but were unable to reproduce it with the information provided. This can happen due to differences in environment, project setup, or steps taken. We will close this case for now. If you're able to share additional details such as different projects, steps, hardware/software configuration, or logs - please let us know, and we'll be happy to re-evaluate.
Steps to reproduce:
1. Create new Unity project using High Definition 3D Template
2. In Project window create a new Scene (Create > Scene > Scene)
3. Open New Scene
4. In Project window create Visual Effect Graph Asset
5. Drag VFX Asset to the Hierarchy
6. In Hierarchy holding Shift, select Main Camera + Directional Light + New VFX GameObjects
7. Observe the Console window
Actual results: Error are thrown in the Console window
Expected results: No errors are thrown in the Console window
Reproducible with versions: 6000.3.4f1, 6000.4.0b4, 6000.5.0a4
Can’t test with versions: 6000.0.65f1 (Hierarchy V2 not available)
Tested on (OS): macOS Tahoe 26.2 (M1)
Error:
MissingComponentException: There is no 'VisualEffect' attached to the "Main Camera" game object, but a script is trying to access it. You probably need to add a VisualEffect to the game object "Main Camera". 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:1086) 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 <228ce715ea63477d858c72f4571f5e9e>:0) UnityEditor.VFX.UI.VFXViewWindow.AttachTo (UnityEngine.VFX.VisualEffect visualEffect) (at ./Library/PackageCache/com.unity.visualeffectgraph@f3a57f46bdfe/Editor/GraphView/VFXViewWindow.cs:188) UnityEditor.VFX.AdvancedVisualEffectEditor.AutoAttachToSelection () (at ./Library/PackageCache/com.unity.visualeffectgraph@f3a57f46bdfe/Editor/Inspector/AdvancedVisualEffectEditor.cs:746) UnityEditor.VFX.AdvancedVisualEffectEditor.OnEnable () (at ./Library/PackageCache/com.unity.visualeffectgraph@f3a57f46bdfe/Editor/Inspector/AdvancedVisualEffectEditor.cs:113)
Issues you vote on will appear here