- Home /
Changing material or texture on a Projector
I have been trying to find a way to change the material on my projectoir.
I have done everything I can think of from
proj.material.SetTexture( "_MainTex", newTex )
proj.material = newMaterial
proj.material.mainTexture = newTex
I just can't seem to figure it out.
any help would be great thank you
Answer by Eric5h5 · May 15, 2010 at 08:32 PM
Look in the projector shader to see what the names of the properties are that you should change with SetTexture. (As I recall, in this case it's "_ShadowTex".)
Did this get any further? I am also trying to get this exact issue to work but I also cant get this answer to work. $$anonymous$$ike did you ever solve it?
Answer by gotys · Dec 08, 2012 at 08:16 AM
As Eric5h5 said, this works great for me:
projector.material.SetTexture("_ShadowTex", texture);
Your answer
Follow this Question
Related Questions
Projectors issue/Bug after upgrading to Unity 5 3 Answers
Animating Projector Material 0 Answers
Material doesn't have a color property '_Color' 4 Answers
Accessing a projectors renderer 2 Answers