Version: 2022.2

MaterialEditor.GetMaterialPropertyNames

切换到手册
public static string[] GetMaterialPropertyNames (Object[] mats);

参数

mats The selected materials.

返回

string[] Returns the material property names.

描述

Gets the shader property names 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