Get a single texture from multiply one (from atlas)
Hello everyone! I need to get a texture of a sprite renderer.
If I write this code, it returns the whole atlas, but I need just the part, which actually renders
GetComponent<SpriteRenderer>().sprite.texture; // This returns the whole atlas
I just need this little part, not the whole atlas:
безымянныи.png
(38.2 kB)
Comment
Your answer
Follow this Question
Related Questions
Need help with an image path script 0 Answers
Applying camouflage without spriting multiple sprites 0 Answers
Blending tiles with larger textures 0 Answers
Unity graphic bug ? 0 Answers
Applying one sprite/texture across multiple gameobjects. (2D) 0 Answers