GetSprite(string)
Runtime function to instantiate the first Sprite in this atlas that matches the name packed in this atlas and return it.
阅读时间1 分钟最后更新于 16 天前
Definition
- Type: Method
- Namespace: UnityEngine.U2D
- Assembly: UnityEngine.CoreModule
public Sprite GetSprite(string name)
Parameters
Returns
Type | Description |
|---|---|
| Sprite |
Remarks
The sprite will use the packed texture of this atlas. Using the action of RequestAtlasCallback will not affect this clone. Sprites created with this API must be destroyed manually.