Search Unity

Bug SubGraph can not set world space attribute properly

Discussion in 'Visual Effect Graph' started by Lieene-Guo, Nov 16, 2020.

  1. Lieene-Guo

    Lieene-Guo

    Joined:
    Aug 20, 2013
    Posts:
    547
    I am trying to calculate particle position in world space. And I converted part of the graph to a subgraph.
    upload_2020-11-16_15-10-16.png
    All graph and sub graph is set to world space.

    upload_2020-11-16_15-9-40.png

    but still I got this in the generated compute shader.
    upload_2020-11-16_15-11-11.png

    the graph is working as expected before partially converted to subgraph.
     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi @Lieene-Guo ,

    I believe this is a known issue. I've linked your post here to the bug case to bump it up in priority.
     
  3. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hey @Lieene-Guo ,
    There is a fix for this in the 10.2 package, disabling implicit space transformations in subgraphs.

    We'll need a more comprehensive refactor to address spaces in graphs more robustly, but for now this fix will allow you to control the space from outside of the subgraph manually and avoid the confusing automatics conversion.
     
  4. Lieene-Guo

    Lieene-Guo

    Joined:
    Aug 20, 2013
    Posts:
    547
    Thank you! I will try it out!