- Home /
Setting particle texture is not working. [ Particles/Additive ]
I have a reticle counter , and when it goes up by 1 , it should change the texture of the material.
ReticleMat.SetTexture("_ParticleTexture", ReticlesGO[0]);
This is apparently not working , i have trie
ReticleMat.mainTexture = ReticlesGO[0];
This also is invalid.
The shader is Particles/Additive.
How do you get a reference on Reticle$$anonymous$$at? Probably you are changing material in a wrong instance.
Reticle$$anonymous$$at is a $$anonymous$$aterial variable But i am not sure how to change the texture of it.
@knuckles209cp, I mean, how do you assign the value of this variable? Where did you get that? I doubt that this is a reference to the material of your particles, so that changing the texture does not work.
For example, renderer.material.mainTexture will get you a reference to object's material and it works fine, so I think you are getting a reference wrong way.
Ok i think i am , Whats the best way to go about this?
Your answer
Follow this Question
Related Questions
Assigning UV Map to model at runtime 0 Answers
Iphone - Blend two textures + Additive blending 3 Answers
Multiple light baked textures for one mesh/model? 0 Answers
Scalling animation is blurring frame texture 1 Answer
Texture : Black Border ? 0 Answers