Search Unity

Question Vfx resets on editor start

Discussion in 'Visual Effect Graph' started by Vaell, Jun 25, 2020.

  1. Vaell

    Vaell

    Joined:
    Apr 3, 2017
    Posts:
    8
    Hey, all my work resets on editor start up. Using 2019.4.1 with HDRP(7.3.1). Couldn't solve problem yet. Help will be apreciated.

    Thanks,
     
  2. webik150

    webik150

    Joined:
    Mar 23, 2013
    Posts:
    62
    I have the same problem. Using 2019.4.4f1 with Lightweight RP. Everything works, but gets reset.
    What I think the problem is, is that the VFX graph doesn't actually get saved into an asset. Even after saving, the graph tab has an asterisk behind it, indicating it hasn't been saved. I also created a subgraph, but even after CTRL+S, the .vfx file only says:

    Code (csharp):
    1. %YAML 1.1
    2. %TAG !u! tag:unity3d.com,2011:
    3. --- !u!2058629511 &1
    4. VisualEffectResource:
    5.  
    EDIT:
    I think I've solved it. The graph doesn't get saved if You have the window undocked from the editor.
     
  3. Vaell

    Vaell

    Joined:
    Apr 3, 2017
    Posts:
    8
    yes,asterisk always there, but graph still does not get saved for me even window is docked
     
  4. webik150

    webik150

    Joined:
    Mar 23, 2013
    Posts:
    62
    Another possible workaround/fix: Make sure You have some node selected in the graph while saving. That has worked reliably for me so far, though I do have to save 2-3 times in a row sometimes (CTRL+S,CTRL+S,CTRL+S)
     
  5. Vaell

    Vaell

    Joined:
    Apr 3, 2017
    Posts:
    8
    I will try that too... Thank you for help.