Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

Packer.GetAtlasDataForSprite

Switch to Manual
public static function GetAtlasDataForSprite(sprite: Sprite, out atlasName: string, out 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.