Version: 2022.2
言語: 日本語
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.

See Also: MaterialProperty.