Home > Mobile >  How to change color of multiple objects in Unity
How to change color of multiple objects in Unity

Time:10-29

I have multiple triangle objects in white and I want to change it to yellow. Can you show me how to change colors without switching them one by one ? Thank you. enter image description here

CodePudding user response:

Assign the same material to all of them and you'll be able to change the colour of all the objects just by changing it on that material. You can quickly assign the material to all of them by selecting all of the objects and dragging the material into the "Materials" field of the renderer.

CodePudding user response:

First of all, right-click on the project tab and then create>material. Then go to the albedo's color button and then select the color you wanna choose. Then select all of your triangles and drag and drop in the newly created material on the very bottom of the selected triangles.

NOTE: If any of your triangles is a prefab, like the very first triangle as per the provided image, right click on it then prefab then unpack completely. then you will be able to drag in the material.

I hope it was helpful to you!!

  • Related