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.


Did you find this page useful? Please give it a rating: