How To Apply Color To A Game Object In Unity?
Learn how to add colors to your Game Object in Unity and build your own library of colors for Games, Applications, and AR/VR Experiences.
What are you going to learn?
Most of the time when you are using Game Objects in Unity, you would like to add some color to them so that all your Game Objects look different from each other.
In this article, I will show you a simple method to apply any color to a Cube.
This same technique can be used to-
👉 apply color to all your Game Objects
👉 build your own library of colors for your game, application, or AR/VR experience
P.S — To make it easier to understand, I will treat “material” and “color” as the same thing for the rest of this article and use it interchangeably. Just remember though, that they are not the same.
Let’s begin with a blank sample scene.
Step 1: Create a folder that contains all the colors
It’s always a good practice, to begin with creating a folder that contains all your colors or materials. This helps in creating a palette(or a collection of colors or materials) and makes it easier for you to apply the colors (or materials) in your palette to the Game Objects.