Search Unity

Animating Shared Material

Discussion in 'Timeline' started by Lune, May 27, 2018.

  1. Lune

    Lune

    Joined:
    Oct 20, 2012
    Posts:
    62
    Hello!

    I am trying to animate material settings via the animation track, what i do is, i drag a gameobject where the material is used over an animation track and then animate the material settings, however the animation is only applied to the material in the mesh (which was expected).

    is there a way to animate the shared material in all the meshes without animating one by one?

    thanks!
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,609
    Can you add the material file itself to the animation track?
     
  3. Lune

    Lune

    Joined:
    Oct 20, 2012
    Posts:
    62
    tried that before posting here, animation tracks requires that the object on it has an animator component, so you can not drop a material file there.
     
    Peter77 likes this.
  4. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    I don't believe it is possible with animation tracks. To do this in timeline, you could create a custom track. I don't know of any existing (custom) tracks that do this, but it does seem like it would be useful.
     
  5. D4KU

    D4KU

    Joined:
    Jun 17, 2019
    Posts:
    1
    I hope nobody minds the necromancing or the shameless plug, I just wanted to offer some relief in case somebody is still in search of an answer to this problem (like I was). As suggested by seant_unity, I created a Material Timeline Track able to animate shared materials. You can get it on github: https://github.com/D4KU/unity-material-timeline

    In case you like it consider buying it for a few bucks from the asset store: https://assetstore.unity.com/packages/tools/animation/material-timeline-track-207256
     
    MarlusVinicius and fizJob like this.