Version: 2023.2
public bool IsChildOf (Material ancestor);

参数

ancestor The specific ancestor to find in the hierarchy.

返回

bool True if the given material is an ancestor of this Material.

描述

Returns True if the given material is an ancestor of this Material.

This method is Editor-only.

Additional resources: Material.parent.