Search Unity

Animate the parameters of a material used by multiple objects (Animate SharedMaterial)

Discussion in 'Animation' started by snoche, Feb 5, 2019.

  1. snoche

    snoche

    Joined:
    Feb 22, 2010
    Posts:
    82
    I need to animate the parameters of a material Shader I made for multiple objects but when I make a new animation and try to change them in the animator I can only animate the material I have selected, not the share material and it makes a unique look for that object. I have a big array of 40x40 cubes using that Shader.

    If I change the parameters on the material inspector it changes to all them but if I make an animation it just change the one object I have selected.

    Is there a way to animate all them or the sharedMaterial in Unity?

    Thank you,
    David
     
  2. JamesT0ngue

    JamesT0ngue

    Joined:
    Jun 24, 2018
    Posts:
    3
  3. snoche69

    snoche69

    Joined:
    Feb 26, 2022
    Posts:
    1
    Only way I know is make a custom inspector that change the sharedMaterial, then you can animate that setting instead.