Log in or register to post comments

COLOR QUESTION

June 15, 2013 - 8:59am #1

Hi,

just another noob color question.

I'm developing for testing a simple app.

When target is detect app show red cube. The question is: is it possible to change color of cube while app is running?

My idea is that when i tap (or double tap) on screen a menu (or some buttons) let me change the color of the cube from red to blu. yellow etc.

Any idea?

 

Tank You

 

COLOR QUESTION

June 15, 2013 - 9:13am #2

Take a look at the VirtualButtons sample for an example of how to swap textures at runtime (e.g. VirtualButtonEventHandler.cs ). Alternatively you can change material colors dynamically - http://docs.unity3d.com/Documentation/ScriptReference/Material-color.html

Log in or register to post comments