Copyright © 2026 Unity Technologies
Repo steps:
Expected Result: No errors in the console
Actual Result: Compile error is visible in the console
Reproducible with: 2021.3.12f1, 2022.2.13f1, 2023.1.0b14, 2023.2.0a12
Cant test with: 2020.3.46f1 (Functionality does not exist)
Platforms tested: Win 11
Notes:
Unity cannot compile the VisualEffectAsset at path "Assets/New Graph.vfx" because of the following exception:
System.InvalidOperationException: The expression UnityEditor.VFX.VFXExpressionCastFloatToBool is not valid as it have the invalid flag: InvalidOnCPU
at UnityEditor.VFX.VFXExpressionGraph.BuildMapper (UnityEditor.VFX.VFXContext context, System.Collections.Generic.Dictionary`2[TKey,TValue] dictionnary, UnityEditor.VFX.VFXDeviceTarget target) [0x0004c] in .\Library\PackageCache\com.unity.visualeffectgraph@15.0.5\Editor\Compiler\VFXExpressionGraph.cs:277
at UnityEditor.VFX.VFXExpressionGraph.BuildCPUMapper (UnityEditor.VFX.VFXContext context) [0x00000] in .\Library\PackageCache\com.unity.visualeffectgraph@15.0.5\Editor\Compiler\VFXExpressionGraph.cs:244
at UnityEditor.VFX.VFXGraphCompiledData.Compile (UnityEditor.VFX.VFXCompilationMode compilationMode, System.Boolean forceShaderValidation, System.Boolean enableShaderDebugSymbols, UnityEditor.VFX.VFXAnalytics analytics) [0x00441] in .\Library\PackageCache\com.unity.visualeffectgraph@15.0.5\Editor\Compiler\VFXGraphCompiledData.cs:1169
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
Issues you vote on will appear here