But it doesn’t work. How can I access to the Box001 material (the mesh of this character) ? It doesn’t work because I don’t know the good way to change the material of Box001, which is a member of nounours. (the script of this material transformation is placed on “nounours”)
Has anyone an idea ? A good way to do this ?
Thanks in advance for your suggestions and your help.
thank you very much for your help.
Finally I solved the problem yesterday . I don’t know exactly how…but it works ! :).
I puted the script on BOX001 and used a boolean in the Update function to activate the renderer material. The “renderer material” was called before this in a “OnCollisionEnter” function. It’s seems that it was the problem.
I’m going to try the way you show me, because it seem to be “cleaner” in coding terms.
I’ve tried the Transform.find but i was wrong. I forgot to mention the path : like transform.FInd(“Nounours/box001”);
I think this was the problem.