ドキュメント

Unity Engine

Unity Engine

GetMaterialProperties(Object[])

Get shader property information of the materials you pass in.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static MaterialProperty[] GetMaterialProperties(Object[] mats)

Parameters

The selected materials.

Returns

Type

Description

MaterialProperty[]Returns the material properties.

Remarks

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