Version: 2018.4
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.