ドキュメント

Unity Engine

Unity Engine

SetVariantScale(SpriteAtlas, float)

Set the value used to downscale the master's texture.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Parameters

spriteAtlas


value

Recommended value is [0.1 ~ 0.99].

Remarks

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.