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

SpriteEditorExtension.GetSpriteID

매뉴얼로 전환
public static GUID GetSpriteID (Sprite sprite);

파라미터

spriteThe 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.