object color

hello,
i have an object that have an green color.
i want that if i press a key that i turns on another color.
thanks :slight_smile:

As far as i know you can change the color with

renderer.material.color = (1, 1, 1, 1);

you can adjust the color by changing the nubers inside the brackets.