Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


variantScale

Value used to downscale the master's texture.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor.U2D
  • Assembly: UnityEditor.CoreModule
public float variantScale { get; set; }

Remarks

While packing a variant SpriteAtlas, the master Atlas' packed Texture will be duplicated and scaled according to this value. The resulting new Texture will be the packed Texture of this Atlas.