- Home /
Question by
itsbaddergrammar · May 07, 2020 at 06:22 AM ·
prefabmaterialbutton trigger events
How to change the material of a prefab in script?
I am currently making a game where there is the option to customize the look your player and the enemy with the buttons (in a separate scene than where the player is and where the enemy is instantiated) by changing the materials its made out of. The issue is that I cannot figure out how to change the material of the prefab via the button, or even without the button. Is it even possible?
Comment
Your answer
Follow this Question
Related Questions
Generated meshes/materials cannot be made into prefabs? 1 Answer
Blue, Red and pink Materia 1 Answer
How to get all objects instantiated from a single prefab? 1 Answer
How can I set the material on an instance after creating it? 1 Answer
Change material inside instanced prefab, gameobject.renderer is NULL 1 Answer