Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

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

Packer.GetAtlasDataForSprite

public static void GetAtlasDataForSprite(Sprite sprite, out string atlasName, out Texture2D atlasTexture);

Parameters

sprite Sprite to query.
atlasName Gets set to the name of the atlas containing the specified Sprite.
atlasTexture Gets set to the Texture containing the specified Sprite.

Description

Returns atlasing data for the specified Sprite.