Changing an object's color at runtime

Is there a way to pick a color from a color palette while playing a game.

I'd like to be able to right click over an object and for a color palette to display, allowing the player to choose a different color for that object.

It's is not specific, so, the answer is not specific too.

You need to create a GUI with the picker and get the color from the pick.

Then apply this color using the render.material.SetColor function.

Be specific when question, make questions like these:

  • How shows a GUI when right click;

  • How apply a color in a object;