Version: 2022.1
言語: 日本語
public static GUID GetSpriteID (Sprite sprite);

パラメーター

sprite The Sprite to query.

戻り値

GUID GUID stored in the Sprite.

説明

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.