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.Packer.GetAtlasDataForSprite

static function GetAtlasDataForSprite(sprite: Sprite, atlasName: string, atlasTexture: Texture2D): void;

Parameters

spriteSprite to query.
atlasNameGets set to the name of the atlas containing the specified Sprite.
atlasTextureGets set to the Texture containing the specified Sprite.

Description

Returns atlasing data for the specified Sprite.