This version of Unity is unsupported.

MaterialEditor.GetMaterialPropertyNames

Declaration

public static string[] GetMaterialPropertyNames(Object[] mats);

Parameters

mats The selected materials.

Returns

string[] Returns the material property names.

Description

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.