Version: 2023.1

MaterialEditor.GetMaterialProperties

切换到手册
public static MaterialProperty[] GetMaterialProperties (Object[] mats);

参数

mats The selected materials.

返回

MaterialProperty[] Returns the material properties.

描述

Get shader property information of the materials you pass in.

When implementing custom MaterialEditors, you'd usually pass the this.targets array to this function, where this.targets is all the selected materials.

另请参阅:MaterialProperty