# RenderSprite(Sprite, Material, bool)

> Draws a vector sprite using the provided material.

## Definition

* **Type:** Method
* **Namespace:** [Unity.VectorGraphics](/engine/6000.7/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule

```csharp
public static void RenderSprite(Sprite sprite, Material mat, bool clear = true)
```

### Parameters

**** (\[Sprite]\(/engine/6000.7/script-reference/unityengine/sprite)): The sprite to render**** (\[Material]\(/engine/6000.7/script-reference/unityengine/material)): The material used for rendering**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, clear the render target before rendering
