- Home /
Resources.Load specific sprite in texture sprite mode multiple
Hey Guys,
I have a lot of sprites that are split across multiple 2D atlas. I'm using for an animation an I want to load them like 50 at a time using a coroutine to make it async, but it seems like I can't load a specific one. I'm trying to do like Resources.Load("Anim_0001") which is one of the specific sprite which is in one my my texture set in "multiple" sprite mode and it always returns null. Here the path is an example, but my path is correct, because when I try to load the atlas it works but the sprite doesnt. Does anyone have a solution for this ?
Thanks a lot for your time :)
Claude
Did you try using the generic overload for that method? e.g: Resources.Load("path under Resources folder")
Answer by laelson · Nov 11, 2020 at 12:06 PM
Hello guys, this question is already outdated but maybe it will help the next people.
Use this: Sprite [] sprite = Resources.LoadAll (stringPath);
in case of a sprite in multipe mode, it stores each one in the array so you have access to all.
I hope I helped someone.