Version: 2023.2
public bool isVariant ;

返回

bool True if the material is a variant.

描述

Returns true if this material is a material variant.

This property is Editor-only.

Additional resources: Material.parent.