# Clear

> Clear the list of RectTransforms being driven.

## Definition

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

## Clear(bool)

Clear the list of RectTransforms being driven.

> **Warning:**
>
> **Deprecated.** revertValues parameter is ignored. Please use Clear() instead.

```csharp
public void Clear(bool revertValues)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

## Clear()

Clear the list of RectTransforms being driven.

```csharp
public void Clear()
```
