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

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.