SpriteEditorExtension.GetSpriteID

Declaration

public static GUID GetSpriteID(Sprite sprite);

Parameters

sprite The Sprite to query.

Returns

GUID GUID stored in the Sprite.

Description

Gets the Sprite's GUID.

During Sprite Asset generation, you can identify which SpriteRect was used to generate the Sprite. This is done by matching the GUID return from this method and SpriteRect.spriteID.


Did you find this page useful? Please give it a rating: