Sprite.Find

static Sprite Find(string id)

Finds a sprite that matches the given id! Check out the DefaultIds static class for some built-in ids. Sprites will auto-id themselves using this pattern if single sprites: {Tex.Id}/spr, and this pattern if atlased sprites: atlas_spr/{atlas}/{Tex.Id}.

   
string id Id of the sprite asset.
RETURNS: Sprite A Sprite asset with the given id, or null if none is found.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!