# SetVariantScale(SpriteAtlas, float)

> Set the value used to downscale the master's texture.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.U2D](/engine/6000.6/script-reference/unityeditor/u2d.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void SetVariantScale(this SpriteAtlas spriteAtlas, float value)
```

### Parameters

**** (\[SpriteAtlas]\(/engine/6000.6/script-reference/unityengine/u2d/spriteatlas)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Recommended value is \[0.1 \~ 0.99].

### Remarks

While packing a variant [SpriteAtlas](/engine/6000.6/script-reference/unityengine/u2d/spriteatlas.md) the master atlas's packed texture will be duplicated and scaled according to this value. The resulting new texture will be the packed texture of this atlas.
