Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Dynamic color change in visual effects/particles

Discussion in 'Animation' started by mcredifine, Jun 19, 2017.

  1. mcredifine

    mcredifine

    Joined:
    Jun 19, 2017
    Posts:
    1
    Can anyone provide a short tutorial on how to develop those dynamic functionalities in the top left corner of the screen as seen in this video?


    Is that a script that lets you modify the color on the go or does Unity already has something like this implemented and that I don't know about?

    Thank you!
    -mike
     
  2. Krucho

    Krucho

    Joined:
    Jul 23, 2014
    Posts:
    13
    He uses a handmade custom script for this UI yes.

    Looking at his effects he uses Glow and Dissolve shaders a lot, so his script simply updates the effect color parameter of those shaders.
    You can see at 8:55 the lightning color starts purple and ends pink, and he doesn't tweak the color for some reason (which is very strange because if there is one thing that looks awesome in any color it is lightning). Thats because his shaders use a gradient map (purple => pink) instead of a single color for this effect. So his tool simply doesn't work on this effect, which is why he didn't show it in different colors.

    The recolor script has to adapted to the kind of effects you have, it is not a "1 solution for everything" kind of thing, for example he could have had an option to change the white of all those effects into black and it would have looked awesome too, really depends on what you have and what you want.
     
    Last edited: Jun 20, 2017