x


Altering color / alpha on a Game Object

I've brought a model in from 3dmax. It comes in as a main object that has a child object that in turn has 8 child objects. The 8 child objects each have their own Mesh Renderer and Shader. Neither of the parent objects have Meshes.

If I want to apply 50% alpha to the entire model do I need to modify the material.color.a for each item separately? Or is there some way to just apply changes to the parent object?

more ▼

asked Mar 10 '11 at 07:30 AM

RobRolls gravatar image

RobRolls
3 1 1 4

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

If they all use the same material, then you can change renderer.sharedMaterial on one of them. Otherwise you have to change each one.

more ▼

answered Mar 10 '11 at 07:43 AM

Eric5h5 gravatar image

Eric5h5
81.5k 42 133 529

(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x1744
x1403
x439
x340

asked: Mar 10 '11 at 07:30 AM

Seen: 2085 times

Last Updated: Mar 10 '11 at 07:30 AM