Search Unity

enable/disable block from C#

Discussion in 'Visual Effect Graph' started by wenzy, Mar 11, 2020.

  1. wenzy

    wenzy

    Joined:
    Nov 17, 2015
    Posts:
    44
  2. andybak

    andybak

    Joined:
    Jan 14, 2017
    Posts:
    569
    As far as I understand it the whole graph is compiled at build time and can't be modified - so you'd have to achieve the same thing using conditionals etc.
     
  3. JulienF_Unity

    JulienF_Unity

    Unity Technologies

    Joined:
    Dec 17, 2015
    Posts:
    326
    Enabling/disabling blocks via a boolean port (that can therefore be linked to an exposed property) is something planned in 2020.1
     
  4. wenzy

    wenzy

    Joined:
    Nov 17, 2015
    Posts:
    44
    Thanks for your reply.Looking forward to that feature
     
  5. wenzy

    wenzy

    Joined:
    Nov 17, 2015
    Posts:
    44
    You said conditionals, do u mean some value operation? Like if there is a gravity block in UpdateParticle node. We set the Vector3 to (0,0,0),then the result equals to the block is disable?
     
  6. andybak

    andybak

    Joined:
    Jan 14, 2017
    Posts:
    569
    Something like that. I haven't used VFX Graph for a while and I couldn't remember if there were more explicit conditionals.

    (I'm planning to dive back in soon but I've been deep in procedural mesh gen. I wish we had a graph tool for that...)
     
  7. yym28088

    yym28088

    Joined:
    Aug 6, 2019
    Posts:
    1
    Any update on the latest version?
     
  8. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Ah, scrolling up and looking back at our pre-global-pandemic-predictions :)
    The feature is very much on our roadmap, but I'm afraid there's no update on when it will be worked on as other features were of higher priority. Please feel free to upvote it so we can gauge it's impact in relation to other features.
    Cheers!
     
    shibi2017 and DINmatin like this.