SetIsVariant(SpriteAtlas, bool)
Sets whether this Sprite Atlas is a variant or not.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor.U2D
- Assembly: UnityEditor.CoreModule
public static void SetIsVariant(this SpriteAtlas spriteAtlas, bool value)
Parameters
Remarks
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 SetVariantMultiplier and save this scaled texture.
Additional Resources: SpriteAtlasExtensions.SetMasterAtlas.