Save any changes with vfx window open will lose all the custom graphs.

A fatal Bug and hear no news to fix it.

Hi, how could we reproduce it on our side?

hi there, just create a subgraph and add it to one vfx. you can do it in two ways

  1. duplicate it and open the new one to see:
  2. do any changes inside unity when left that vfx window open. when you press ctrl+s to save to see:
    you’ll lost the subgraph inside your vfx.

Hi, thanks! I’ve tried both options and seems to work fine on my side. Let’s figure it out together:

  1. By any chance, are you referring to this bug mentioned earlier: Unity Issue Tracker - Renaming a VFX Graph loses all subgraph references?
  2. What version are you on? I’ve tried on 2022.2.0a11
  3. Do you mind sharing small reproduction or provide step-by-step instructions on how to reproduce it? I’ve tried multiple combinations from your message, but it is possible that I might be missing something specific.

Hi, I’m on 2022.1.0b.
first. create a vfx and add a subgraph created by yourself and open it:


then in the project window, change this vfx’s name/other vfx’s name/even a shadergraph’s name/ or a script’name and save it, you’ll find that the subgraph lost.

I do not know all of the conditions to trigger this un-expected result. but it happens a lot in my cases. I can not figure out by myself why such a huge error we Unity allows it exist.

Hi,
Thanks for the additional information you provided. It seems that this is the exact same issue as reported here Unity Issue Tracker - Renaming a VFX Graph loses all subgraph references which is fixed at version 2022.2.0a11