mats | The selected materials. |
name | 属性名称。 |
propertyIndex | 属性索引。 |
MaterialProperty Returns the property at the specified index.
获取有关单个着色器属性的信息。
When implementing custom MaterialEditors, you'd usually pass the this.targets
array to this function, where this.targets
is all the selected materials.
另请参阅:GetMaterialProperties、MaterialProperty。