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

Question VFX graph 2021.2b vertex position (SOLVED)

Discussion in 'Visual Effect Graph' started by wichilowat, Oct 2, 2021.

  1. wichilowat

    wichilowat

    Joined:
    Feb 9, 2015
    Posts:
    10
    According to this link https://docs.unity3d.com/Packages/c...raph@12.0/manual/sg-target-visual-effect.html, and https://unity.com/roadmap/unity-platform/rendering-visual-effects, the unity road map. I should be able to modify my lit particle meshes vertex position. But when I add the vertex output node in shader graph with the render target set to Visual Effect the position node becomes greyed out and nothing happens to the mesh. If I change the target and add the material to a mesh in the inspector it behaves as expected with the correct vertex displacement.

    I've tried to find a solution for a couple of days now but I'm stuck.
    Do any of you have a solution? Thanks!

    Also, I'm using URP and unity version 2021.2b.
     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

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

    This functionality for URP is fresh out of the oven and *just* landed :) You'll be able to access it in the next beta: 2021.2.0b15 which, bar any unforeseen circumstances, should become available later this week.

    You won't need to use a Visual Effect target anymore, just Universal if you are in URP, and you need to tick the Support VFX Graph option at the bottom of the Graph settings:


    It should be on by default, but for visibility, you can also toggle between the old and the new improved ShaderGraph integration in the VFX Graph in Preferences > Visual Effects:


    Hope this helps!
     

    Attached Files:

  3. wichilowat

    wichilowat

    Joined:
    Feb 9, 2015
    Posts:
    10
    Okay thanks!
     
  4. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    341
    So did this make it into Unity 2021.2, I'm trying to use it but it won't let me drag the shader graph onto here:

    My shader graph
    upload_2022-1-5_9-19-19.png

    not allowing me to select it here:
    upload_2022-1-5_9-18-51.png
     
  5. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hey @SniperED007 ,

    Replying here as well; is it possible that you are tryin to assign the shader graph asset parent? (you have to drag it's child):


    A few other possible reasons:
    - Have you saved the ShaderGraph after you've made it support the VFX Graph?
    - Are you using anything unsupported? (i.e. are there any console warnings) These can include things like Decal or Sprite type materials in URP, or having exposed blackboard bools, enums, and a few other types.
     

    Attached Files:

  6. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    341
  7. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Thanks for the feedback! Will raise it with the team and see if we can improve things a bit.
     
    shibi2017 likes this.
  8. unity_483C4357D3269025FA3B

    unity_483C4357D3269025FA3B

    Joined:
    Jul 2, 2022
    Posts:
    20
    VladVNeykov likes this.