Search Issue Tracker

Won't Fix

Won't Fix in 2023.1.X

Votes

0

Found in

2023.1.0a20

Issue ID

UUM-19698

Regression

Yes

[VFX Graph] VFX stops + error when graph closed

-

VFX stops when the graph is closed and recompile correctly when the graph is reopened

 

!image-2022-11-18-15-47-13-197.png!
*error:*
Unity cannot compile the VisualEffectAsset at path "Assets/Samples/SmokePortal/VFX_Portal 1.vfx" because of the following exception:
System.ArgumentException: This method should not be called on a disabled block
  at UnityEditor.VFX.VFXCodeGenerator.BuildBlock (UnityEditor.VFX.VFXTaskCompiledData taskData, System.Collections.Generic.List`1[T] linkedEventOut, UnityEditor.VFX.VFXShaderWriter blockFunction, UnityEditor.VFX.VFXShaderWriter blockCallFunction, System.Collections.Generic.HashSet`1[T] blockDeclared, System.Collections.Generic.Dictionary`2[TKey,TValue] expressionToName, UnityEditor.VFX.VFXBlock block, System.Int32& blockIndex) [0x00360] in .\UnityRepoPackages\Packages\com.unity.visualeffectgraph\Editor\Compiler\VFXCodeGenerator.cs:974 
  at UnityEditor.VFX.VFXCodeGenerator.Build (UnityEditor.VFX.VFXContext context, UnityEditor.VFX.VFXTask task, System.String templatePath, UnityEditor.VFX.VFXCompilationMode compilationMode, UnityEditor.VFX.VFXTaskCompiledData taskData, System.Collections.Generic.HashSet`1[T] dependencies) [0x00319] in .\UnityRepoPackages\Packages\com.unity.visualeffectgraph\Editor\Compiler\VFXCodeGenerator.cs:611 
  at UnityEditor.VFX.VFXCodeGenerator.Build (UnityEditor.VFX.VFXContext context, UnityEditor.VFX.VFXTask task, UnityEditor.VFX.VFXCompilationMode compilationMode, UnityEditor.VFX.VFXTaskCompiledData taskData, System.Collections.Generic.HashSet`1[T] dependencies) [0x0001f] in .\UnityRepoPackages\Packages\com.unity.visualeffectgraph\Editor\Compiler\VFXCodeGenerator.cs:215 
  at UnityEditor.VFX.VFXGraphCompiledData.GenerateShaders (System.Collections.Generic.List`1[T] outGeneratedCodeData, UnityEditor.VFX.VFXExpressionGraph graph, System.Collections.Generic.IEnumerable`1[T] contexts, UnityEditor.VFX.VFXCompiledData compiledData, UnityEditor.VFX.VFXCompilationMode compilationMode, System.Collections.Generic.HashSet`1[T] dependencies) [0x00094] in .\UnityRepoPackages\Packages\com.unity.visualeffectgraph\Editor\Compiler\VFXGraphCompiledData.cs:832 
  at UnityEditor.VFX.VFXGraphCompiledData.Compile (UnityEditor.VFX.VFXCompilationMode compilationMode, System.Boolean forceShaderValidation) [0x00713] in .\UnityRepoPackages\Packages\com.unity.visualeffectgraph\Editor\Compiler\VFXGraphCompiledData.cs:1191 
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

  1. Resolution Note:

    There are no fixes planned for this Bug

  2. Resolution Note (2023.1.X):

    Will need more informations, we keep this in mind and will log with info needed if we manage to repro

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.