# Stroke

> Strokes the currently defined path.

## Definition

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

## Stroke()

Strokes the currently defined path.

```csharp
public void Stroke()
```

## Stroke(int)

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

```csharp
public void Stroke(int userData)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): User-defined identifier propagated to every [DrawData](/engine/6000.7/script-reference/unityengine/uielements/drawdata.md) produced by this stroke.
