Material.IsChildOf

Switch to Manual

Declaration

public bool IsChildOf(Material ancestor);

Parameters

ancestor The specific ancestor to find in the hierarchy.

Returns

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

Description

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

This method is Editor-only.

Additional resources: Material.parent.


Did you find this page useful? Please give it a rating: