Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Hidden VFX Output Shader Error when Exported.

Discussion in 'Visual Effect Graph' started by Peplm, Jun 6, 2022.

  1. Peplm

    Peplm

    Joined:
    Aug 2, 2019
    Posts:
    13
    Hello.
    I exported a vfx graph asset into a package and import it into another project.
    I then have an error on each shader on all my VFX Assets. Here's a screenshot.
    upload_2022-6-6_13-37-44.png

    Specifically the error is :
    "Couldn't open include file 'Packages/com.unity.visualeffectgraph/Shaders/VFXMatricesOverride.hlsl'."
    The VFX are working fine though. Is there any solution for this ?
    Thanks.
     
  2. feneq

    feneq

    Joined:
    Aug 25, 2012
    Posts:
    16
    I don't have a solution for you but the same is happening to me. First time using vfx graph (Unity 2021.3.3f1 and Unity 2021.3.4f1)

    "Couldn't open include file 'Packages/com.unity.visualeffectgraph/Shaders/VFXCommon.hlsl'"

    This is happening in a new project with 2D URP
     
  3. Peplm

    Peplm

    Joined:
    Aug 2, 2019
    Posts:
    13
    I managed it by deleting my library folder and restart my project but it's kind of an odd way to solve the problem.
     
  4. WARW0LF

    WARW0LF

    Joined:
    Oct 1, 2016
    Posts:
    15
    Thanks, this worked <3