Documentation

Unity Engine

Download Unity

Unity Engine

GetSprite(string)

Runtime function to instantiate the first Sprite in this atlas that matches the name packed in this atlas and return it.
Read time 1 minuteLast updated 17 days ago

Definition

public Sprite GetSprite(string name)

Parameters

name

The name of the Sprite.

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.