GetSpriteID(Sprite)
Gets the Sprite's GUID.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor.U2D
- Assembly: UnityEditor
public static GUID GetSpriteID(this Sprite sprite)
Parameters
The Sprite to query.
Returns
Type | Description |
|---|---|
| GUID | GUID stored in the Sprite. |
Remarks
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 spriteID.