SpriteAtlasExtensions.SetIsVariant

Declaration

public static void SetIsVariant(U2D.SpriteAtlas spriteAtlas, bool value);

Description

Sets whether this Sprite Atlas is a variant or not.

A Variant will not repack a new texture from the packable list. Instead, it will duplicate the master's packed texture and downscale it according to SpriteAtlasExtensions.SetVariantMultiplier and save this scaled texture.

Additional resources: SpriteAtlasExtensions.SetMasterAtlas.


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