Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Best way to animate the color of different materials on one object.

Discussion in 'Editor & General Support' started by solidp26, Jun 7, 2022.

  1. solidp26

    solidp26

    Joined:
    Nov 1, 2018
    Posts:
    20
    So i got this chest thing with 5 lamps on it. I want to animate each individual lamp's color, but cant seem to find the best way to do so. Any help?

    https://imgur.com/QEYtR4r изображение_2022-06-07_141947267.png
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,514
    When you say "Lamp" do you mean an actual Unity light?

    Or are you just using a material with a color on those little black buttons?

    Within an animation, you should be easily able to manipulate the material on the renderers for those five buttons.

    To make sure I'm not giving you bad information, I did so in the attached example. The annoying thing is that the materials in Unity are in a completely different order than they were when I made the chest in Blender... it might be easier if you break the lights out into individual sub-objects.
    Screen Shot 2022-06-07 at 1.16.08 PM.png
     

    Attached Files:

    solidp26 likes this.
  3. solidp26

    solidp26

    Joined:
    Nov 1, 2018
    Posts:
    20

    Yup, that resolved the issue. That unity package is very helpful, thanks!
     
    Kurt-Dekker likes this.