P
P
Pavel Makov2020-11-08 09:11:15
Unity
Pavel Makov, 2020-11-08 09:11:15

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

1 answer(s)
U
Uncle Bogdan, 2020-11-08
@Paul_Dizer

public Material material;
void Start() {
material.//Нужный параметр
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question