when a file is missing from a VFX graph the missing node is highlighted in the graph itself

I’m attempting to lift some of the gorgeous VFX samples from HDRP to URP and this is the result.
So I’m trying to find that vfxparticlelitplanarprimitive in the vfx graph and can’t see it. (search in the graph would be good)
Double clicking this error message leads nowhere.

Volumetric : Exception while compiling expression graph: System.IO.FileNotFoundException: Could not find file "z:\__tests\visualeffectgraph-samples\library\packagecache\com.unity.visualeffectgraph@8.2.0\shaders\renderpipeline\universal\templates\vfxparticlelitplanarprimitive.template"
File name: 'z:\__tests\visualeffectgraph-samples\library\packagecache\com.unity.visualeffectgraph@8.2.0\shaders\renderpipeline\universal\templates\vfxparticlelitplanarprimitive.template'
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <fb001e01371b4adca20013e0ac763896>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <fb001e01371b4adca20013e0ac763896>:0
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
  at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <fb001e01371b4adca20013e0ac763896>:0
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
  at System.IO.File.ReadAllText (System.String path) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
  at UnityEditor.VFX.VFXCodeGenerator.GetFlattenedTemplateContent (System.String path, System.Collections.Generic.List`1[T] includes, System.Collections.Generic.IEnumerable`1[T] defines, System.Collections.Generic.HashSet`1[T] dependencies) [0x0008d] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXCodeGenerator.cs:278
  at UnityEditor.VFX.VFXCodeGenerator.Build (UnityEditor.VFX.VFXContext context, System.String templatePath, UnityEditor.VFX.VFXCompilationMode compilationMode, UnityEditor.VFX.VFXContextCompiledData contextData, System.Collections.Generic.HashSet`1[T] dependencies) [0x0002a] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXCodeGenerator.cs:369
  at UnityEditor.VFX.VFXCodeGenerator.Build (UnityEditor.VFX.VFXContext context, UnityEditor.VFX.VFXCompilationMode compilationMode, UnityEditor.VFX.VFXContextCompiledData contextData, System.Collections.Generic.HashSet`1[T] dependencies) [0x0001f] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXCodeGenerator.cs:191
  at UnityEditor.VFX.VFXGraphCompiledData.GenerateShaders (System.Collections.Generic.List`1[T] outGeneratedCodeData, UnityEditor.VFX.VFXExpressionGraph graph, System.Collections.Generic.IEnumerable`1[T] contexts, System.Collections.Generic.Dictionary`2[TKey,TValue] contextToCompiledData, UnityEditor.VFX.VFXCompilationMode compilationMode, System.Collections.Generic.HashSet`1[T] dependencies) [0x0006b] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXGraphCompiledData.cs:675
  at UnityEditor.VFX.VFXGraphCompiledData.Compile (UnityEditor.VFX.VFXCompilationMode compilationMode, System.Boolean forceShaderValidation) [0x00641] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXGraphCompiledData.cs:1003 :   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <fb001e01371b4adca20013e0ac763896>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <fb001e01371b4adca20013e0ac763896>:0
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
  at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <fb001e01371b4adca20013e0ac763896>:0
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
  at System.IO.File.ReadAllText (System.String path) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
  at UnityEditor.VFX.VFXCodeGenerator.GetFlattenedTemplateContent (System.String path, System.Collections.Generic.List`1[T] includes, System.Collections.Generic.IEnumerable`1[T] defines, System.Collections.Generic.HashSet`1[T] dependencies) [0x0008d] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXCodeGenerator.cs:278
  at UnityEditor.VFX.VFXCodeGenerator.Build (UnityEditor.VFX.VFXContext context, System.String templatePath, UnityEditor.VFX.VFXCompilationMode compilationMode, UnityEditor.VFX.VFXContextCompiledData contextData, System.Collections.Generic.HashSet`1[T] dependencies) [0x0002a] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXCodeGenerator.cs:369
  at UnityEditor.VFX.VFXCodeGenerator.Build (UnityEditor.VFX.VFXContext context, UnityEditor.VFX.VFXCompilationMode compilationMode, UnityEditor.VFX.VFXContextCompiledData contextData, System.Collections.Generic.HashSet`1[T] dependencies) [0x0001f] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXCodeGenerator.cs:191
  at UnityEditor.VFX.VFXGraphCompiledData.GenerateShaders (System.Collections.Generic.List`1[T] outGeneratedCodeData, UnityEditor.VFX.VFXExpressionGraph graph, System.Collections.Generic.IEnumerable`1[T] contexts, System.Collections.Generic.Dictionary`2[TKey,TValue] contextToCompiledData, UnityEditor.VFX.VFXCompilationMode compilationMode, System.Collections.Generic.HashSet`1[T] dependencies) [0x0006b] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXGraphCompiledData.cs:675
  at UnityEditor.VFX.VFXGraphCompiledData.Compile (UnityEditor.VFX.VFXCompilationMode compilationMode, System.Boolean forceShaderValidation) [0x00641] in Z:\__TESTS\VisualEffectGraph-Samples\Library\PackageCache\com.unity.visualeffectgraph@8.2.0\Editor\Compiler\VFXGraphCompiledData.cs:1003
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Hey @laurentlavigne ,

The key is this bit here: vfxparticlelitplanarprimitive

We do not have lit particle support for URP at the moment, though it’s planned for next year. Many of the VFX HDRP samples use lit outputs, some use distortion output (also HDRP specific) and you will not be able to convert them to URP. If you don’t need them to be lit, right click on the lit outputs while in HDRP, select convert, and convert them to a non-lit version before attempting to port them to URP.

1 Like

this is really nice workflow. thanks.

1 Like