# PatternFill

> Fills a shape with a pattern.

## Definition

* **Type:** Class
* **Namespace:** [Unity.VectorGraphics](/engine/6000.5/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule
* **Implements:** [IFill](/engine/6000.5/script-reference/unity/vectorgraphics/ifill.md)

```csharp
public class PatternFill : IFill
```

## Remarks

For more information, refer to work with vector graphics.

## Properties

| Property                                                                               | Description                                            |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [Mode](/engine/6000.5/script-reference/unity/vectorgraphics/patternfill/mode.md)       | The filling method (non-zero or even-odd) of the fill. |
| [Opacity](/engine/6000.5/script-reference/unity/vectorgraphics/patternfill/opacity.md) | The opacity of the fill.                               |
| [Pattern](/engine/6000.5/script-reference/unity/vectorgraphics/patternfill/pattern.md) | The root node of the pattern                           |
| [Rect](/engine/6000.5/script-reference/unity/vectorgraphics/patternfill/rect.md)       | The rectangle that is repeated                         |
