# Last()

> The last element matching all the criteria, or null if none was found.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public T Last()
```

### Returns

| Type | Description                                                            |
| ---- | ---------------------------------------------------------------------- |
| T    | The last element matching all the criteria, or null if none was found. |
