x


Changable clothing

Hey, I have no idea where to start with this but I made a character for my Unity game in Blender. The problem is, I want part of its clothing to change colour when certain events occur. What would the best way to do this be?

Thanks for your help

more ▼

asked Apr 21 '12 at 07:16 AM

Esme gravatar image

Esme
31 2 4 6

You can access that materials color and change it there.

renderer.material.color=newColor;

or

renderer.materials[matNumber].color=newColor;

depending on how many materials are on the object itself.

Apr 21 '12 at 07:24 AM hijinxbassist
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x726
x12

asked: Apr 21 '12 at 07:16 AM

Seen: 375 times

Last Updated: Apr 21 '12 at 07:24 AM