PlayMaker Help & Tips > PlayMaker Help
Set Material Texture (Projector _ShadowTex)
adgrist:
Getting into PlayMaker now!
Trying to use Set Material Texture, all seems to work well with normal materials using '_mainTex', but i need to change a texture on a projector at run time. In the shader it has the main 'cookie' texture as '_ShadowTex' but using this on Set Material Texture doesn't seem to work.
Any ideas anyone?
adgrist:
Nobody ever tried this before?
jeanfabre:
Hi,
Where did you get that projector material shader?
bye,
Jean
adgrist:
Hi Jean,
It is from the standard Projectors package, Projector/Multiply shader
jeanfabre:
Hi,
it works here using "_ShadowTex" i can change the texture of a material using that shader.
You might have a clash with another set material texture that set it back to null or something or maybe you are not calling that action at all in the first place, or your action is not targeting the right gameObject. Make a simple scene, with one cube and that material, if that works, then something is wrong in your actual set up, not in the action itself
bye,
Jean
Navigation
[0] Message Index
[#] Next page
Go to full version