Loading a csv file with a image info

Hey guys what would be the best way to store the information of a image in a csv?

Further explanation:

I will have 1000 different players to choose from and every info for it will be in a csv.
I know how to get strings and floats.
Should i write in the info of the disc path of the images?
How would the picture be assigned automatically to a sprite renderer?

csv probably cannot contain binary data, so i would write the relative path to image file there.

or better,
images could be named so that some id or unique name matches image filename?
(then you dont need to write/parse filenames at all)

1 Like

good idea! thanks i try to get it like that

for loading images, can use this

then can create sprite from texture2d,

are you making this for desktop or also mobiles?

1 Like

for HTML5 :slight_smile:

You can encode the image to a BASE64 string and save it into the csv file along with the rest of the data, I’ve used this technique in the past, assuming the images aren’t massive it should be workable.

ok for webgl, can load textures with webrequest