# IsChildOf(Material)

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public bool IsChildOf(Material ancestor)
```

### Parameters

**** (\[Material]\(/engine/6000.0/script-reference/unityengine/material)): The specific ancestor to find in the hierarchy.

### Returns

| Type                                                          | Description                                                 |
| ------------------------------------------------------------- | ----------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the given material is an ancestor of this Material. |

### Remarks

This method is Editor-only.

Additional Resources: [\_parent](/engine/6000.0/script-reference/unityengine/material/parent.md).
