Search Issue Tracker
Won't Fix
Won't Fix in 2023.3.X
Votes
0
Found in
2023.1.0b13
2023.2.0a20
2023.3.0a1
Issue ID
UUM-33859
Regression
No
Compile Error in Visual effects graph
Repo steps:
- Open Unity Scene (HDRP)
- Go to Window > Visual Effects > Visual Effects Graph
- Name the Graph anything and double click it in the Project window
- Follow the video attached to this Bug
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 ()
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
- Line Brush blue outline appears at incorrect position when painting start of line in Tile Palette
- [URP] All materials render black when building via batchmode or without rendering Scene/Game view in Editor if Decal renderer Technique is set to "Automatic"
- Player Tags list shows extra blank space behind the scrollbar in the "Player Tags" settings window
- Edit Angular Limits gizmo handles are small and easy to miss-click in the Scene view
- Duplicate Player Tag save fails silently with no error or validation message
Resolution Note:
The error is actually expected.
Load texture is GPU only and spawner context is evaluated on CPU. So no texture load can be used in Spawners.
The error message is unclear but it was improved in newer versions
Resolution Note (2023.3.X):
The error is actually expected.
Load texture is GPU only and spawner context is evaluated on CPU. So no texture load can be used in Spawners.
The error message is unclear but it was improved in newer versions