# SparseTexture(int, int, TextureFormat, int, bool)

> Create a sparse texture.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public SparseTexture(int width, int height, TextureFormat textureFormat, int mipCount, bool linear)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Texture width in pixels.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Texture height in pixels.**** (\[TextureFormat]\(/engine/6000.6/script-reference/unityengine/textureformat)): Texture Format.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Mipmap count. Pass -1 to create full mipmap chain.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether texture data will be in linear or sRGB color space (default is sRGB).

### Remarks

See [SparseTexture](/engine/6000.6/script-reference/unityengine/sparsetexture.md).
