# Fill

> Fills the currently defined path.

## Definition

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

## Fill(FillRule)

Fills the currently defined path.

```csharp
public void Fill(FillRule fillRule = FillRule.NonZero)
```

### Parameters

**** (\[FillRule]\(/engine/6000.6/script-reference/unityengine/uielements/fillrule)): The fill rule (non-zero or odd-even) to use. Default is non-zero.

## Fill(FillRule, int)

Fills the currently defined path and tags every resulting [DrawData](/engine/6000.6/script-reference/unityengine/uielements/drawdata.md) with the given user identifier, surfaced on `DrawData.userData` in mesh modifiers.

```csharp
public void Fill(FillRule fillRule, int userData)
```

### Parameters

**** (\[FillRule]\(/engine/6000.6/script-reference/unityengine/uielements/fillrule)): The fill rule (non-zero or odd-even) to use.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): User-defined identifier propagated to every [DrawData](/engine/6000.6/script-reference/unityengine/uielements/drawdata.md) produced by this fill.
