Search Unity

Vfx graph unable to play the output shader flipbook ?

Discussion in 'Visual Effect Graph' started by lpelletier_bhvr, Jan 3, 2022.

  1. lpelletier_bhvr

    lpelletier_bhvr

    Joined:
    Mar 16, 2021
    Posts:
    2
    So i got a shader playing a flipbook - looks fine in the shadergraph. Now i plugged that shader in my vfx graph output hoping each of my particle would play the flipbook but it seems stuck on a frame and not playing my flipbook no matter what I tried - i would love some cues as to how I can resolve this ?

    thanks

    Here is a view of what my output is like :

    upload_2022-1-3_15-38-24.png
    and a view of my shadergraph flipbook :
    upload_2022-1-3_15-39-11.png
     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi @lpelletier_bhvr ,

    It should work fine, I just tried locally with your setup. Remember that shaders by default don't always refresh in edit mode, so you'll either have to enter play mode, or enable in the scene view the Always Refresh option.

    Let us know if you are still experiencing any other issues.


    p.s. I think you might be able to get around this by also just exposing a public float in your Shader and in the VFX Graph connecting VFX Graph time to it to use as your shader time.
     

    Attached Files: