- Home /
Question by
softmarshmallow · Feb 07, 2017 at 05:33 PM ·
spriteresources.load
save & load sprite by path
string path = AssetDatabase.GetAssetPath(this.itemThumbnailImage.sprite);
Sprite sprite = Resources.Load(path) as Sprite;
i'm currently working on character item system(?) and what im trying to do is to save purchased character's sprite's path and load when ever i want..
code above gives me blank sprite. guess it because "path" is giving a full path. such like "Assets/Resources/Sprite/blah.png"
what should i do for this??
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612110444im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Resources.Load specific sprite in texture sprite mode multiple 1 Answer
[C#]Adding a Sprite from a Resources.Load("Path") : How does it work ? 3 Answers
Resources.Load sprite returning null 2 Answers
Loading a Sprite (Unity 4.3) in resource folder and setting it in sprite renderer 6 Answers
Resources not loading in APK 0 Answers