Answer the question
In order to leave comments, you need to log in
How to change material parameters via script?
There is an object with many child objects, on which several materials are applied.
You need to change the color of the material through the code, for example. It does not work.
Answer the question
In order to leave comments, you need to log in
public Material material;
void Start() {
material.//Нужный параметр
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question