Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Sprites.PackerJob.AssignToAtlas

AssignToAtlas(atlasName: string, sprite: Sprite, packingMode: SpritePackingMode, packingRotation: SpritePackingRotation): void;
void AssignToAtlas(string atlasName, Sprite sprite, SpritePackingMode packingMode, SpritePackingRotation packingRotation);
def AssignToAtlas(atlasName as string, sprite as Sprite, packingMode as SpritePackingMode, packingRotation as SpritePackingRotation) as void

Description

Assigns a Sprite to an already registered atlas.