# Dispose

> Disposes this hierarchy node type handler to free up resources in the derived class.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.6/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyCoreModule

## Dispose(bool)

Disposes this hierarchy node type handler to free up resources in the derived class.

```csharp
protected virtual void Dispose(bool disposing)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Returns true if called from Dispose, false otherwise.

## Dispose()

Disposes this hierarchy node type handler to free up resources.

> **Warning:**
>
> **Removed.** The IDisposable interface is obsolete and no longer has any effect. Instances of handlers are owned and disposed by the hierarchy so they do not need to be disposed by user code.

```csharp
public void Dispose()
```
