기술 자료

Unity Engine

Unity Engine

GetSpriteID(Sprite)

Gets the Sprite's GUID.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static GUID GetSpriteID(this Sprite sprite)

Parameters

sprite

The Sprite to query.

Returns

Type

Description

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