# RemoveTransformPath

> Removes a transform path from the AvatarMask.

## Definition

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

## RemoveTransformPath(Transform)

Removes a transform path from the AvatarMask.

```csharp
public void RemoveTransformPath(Transform transform)
```

### Parameters

**** (\[Transform]\(/engine/6000.5/script-reference/unityengine/transform)): The Transform that should be removed from the AvatarMask.

### Remarks

If there is no transform path matching **transform** nothing will be removed.

## RemoveTransformPath(Transform, bool)

Removes a transform path from the AvatarMask.

```csharp
public void RemoveTransformPath(Transform transform, bool recursive)
```

### Parameters

**** (\[Transform]\(/engine/6000.5/script-reference/unityengine/transform)): The Transform that should be removed from the AvatarMask.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to also remove all children of the specified transform.

### Remarks

If there is no transform path matching **transform** nothing will be removed.
