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;
static void GetAtlasDataForSprite(Sprite sprite, string atlasName, Texture2D atlasTexture);
static def GetAtlasDataForSprite(sprite as Sprite, atlasName as string, atlasTexture as Texture2D) as 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.