# PushClip()

> Uses the current path as a clipping region. This region clips subsequent Fill() and Stroke() operations.

## Definition

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

```csharp
public void PushClip()
```

### Remarks

For performance reasons, this only works for Painter2D instances created with "new Painter2D()" to be eventually saved to a VectorImage using [Painter2D.SaveToVectorImage](/engine/6000.3/script-reference/unityengine/uielements/painter2d/savetovectorimage.md). This will not work with Painter2D attached to a [MeshGenerationContext](/engine/6000.3/script-reference/unityengine/uielements/meshgenerationcontext.md).

Note that the clipped shapes will not have antialiased edges since the clipping path is applied by doing a per-triangle clipping process. Use PopClip() to remove the most recently added clipping region.
