I through the code using Resources to load a specific Texture getting all cropped sprites properties but what I need is to bind Textures from the Unity Editor.
So far I do like this:
var sprites = Resources.LoadAll<Sprite>("TilesPack");
foreach (var sprite in sprites)
{
Debug.Log("Texture: " + sprite.name);
}
I did a public Texture2D however I see no properties to walking through all sprites, just methods to manipulate pixels, colors and so on.
What I suppose to do to reach that?
Thanks in advance