Search Unity

Editor event on recompile?

Discussion in 'Visual Effect Graph' started by Aaron-Meyers, May 21, 2020.

  1. Aaron-Meyers

    Aaron-Meyers

    Joined:
    Dec 8, 2009
    Posts:
    305
    Is there an event (vfx graph specific or otherwise) that I can have an editor script listen for for when a VFX graph recompiles (like when you add a node or change a connection)?

    I would like to have a script be able to respond to this...
     
  2. JulienF_Unity

    JulienF_Unity

    Unity Technologies

    Joined:
    Dec 17, 2015
    Posts:
    326
    Hi, You should be able to use an AssetPostProcessor for this and test against .vfx extension
     
  3. Aaron-Meyers

    Aaron-Meyers

    Joined:
    Dec 8, 2009
    Posts:
    305
    thanks its working great