Search Unity

Bug VFX cannot build completely

Discussion in 'Visual Effect Graph' started by AkiWang, Aug 23, 2021.

  1. AkiWang

    AkiWang

    Joined:
    Apr 28, 2017
    Posts:
    5
    Hi, I encountered a problem with VFX 7.1.8(unity version 2020.3.4f1).

    In normal case the ,vfx file will be like
    upload_2021-8-23_15-25-10.png
    it contains some shader files. I think that means this vfx file compiles shader successfully.
    My project should build a resource package before building an executable file. I call the function Build in VFXGraph.cs for building VFX files.
    upload_2021-8-23_15-30-36.png
    However, after build process, I can't see any particle effect in game scene and when I open Unity Editor the vfx file looks like
    upload_2021-8-23_15-25-22.png
    not contains any shader.
    But, if I click button at menu upload_2021-8-23_15-28-38.png
    in this way the vfx file build correctly.
    please give me an answer if you have any idea. Thanks in advance