Experimental: this API is experimental and might be changed or removed in the future.

SpriteEditorExtension.GetSpriteID

Cambiar al Manual
public static GUID GetSpriteID (Sprite sprite);

Parámetros

spriteThe Sprite to query.

Valor de retorno

GUID GUID stored in the Sprite.

Descripción

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.