SpriteAtlasAsset.SetVariantScale

Declaration

public void SetVariantScale(float value);

Parameters

value The multiplier to downscale the Master Atlas's Texture by, the recommended range is from [0.1 ~ 0.99].

Description

Sets the value used to downscale the Master's Texture.

While packing a Variant SpriteAtlas, the Master Atlas's packed Texture is duplicated and downscaled according to this value. The resulting new Texture becomes this Atlas's packed Texture.


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