Unity: Load Image/Sprite on JSON

前端 未结 3 843
孤城傲影
孤城傲影 2021-01-28 12:57

I want to load sprite on json but how ? Text are showing but not the images.

This is the JSON code to load my text data.

 private void myLoadGameData() /         


        
3条回答
  •  不思量自难忘°
    2021-01-28 13:15

    You should check the documentation on loading images, also try using breakpoints to see whats being fed into the function and if that path actually exists (it looks like an absolute path, and if so most likely not going to work)

    I imagine if there was a problem with the JSON you would get the relevant error about it, but seems more like miss-use of the function and/or improper file path

提交回复
热议问题