Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

SpriteAtlasExtensions.SetVariantScale

Declaration

public static void SetVariantScale(U2D.SpriteAtlas spriteAtlas, float value);

Parameters

value Recommended value is [0.1 ~ 0.99].

Description

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

While packing a variant SpriteAtlas 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.