Get single sprite from sprite atlas
问题 I'd like to get a single sprite which GameObject has in a SpriteRenderer component. Unfortunately, this code returns the whole atlas, but I need to a part of this atlas. Texture2D thumbnail = GetComponent<SpriteRenderer>().sprite.texture; 回答1: There is no native API to get single sprite from the SpriteRenderer and no API to access individual Sprite by name. You can vote for this feature here. You can make your own API to get single sprite from Atlas located in the Resources folder like the