I have a tile map which takes sprites from my assets and combines them into one mesh. Now I need to assign material with the atlas texture generated for sprites (sprite atlas).
The problem is that when I take material from one sprite that uses the atlas I need, and assign that material to the map, I get a material with no texture. And attempts to get texture from the sprite return null.
How do I get the sprite atlas texture?