interpret loaded image file into pixel array?

So as part of a project i’m working on, i’d like to be able to load an image file and interpret it into an array for use in a map generator. the idea is that each pixel has a hex value (as a string) in a simple array. that can then be used to generate the game map. i’m currently looking for solutions but i have no idea where to look or what i’m looking for would be called. i’ve found a few sources that MIGHT be of use but i have no idea how to implement them. this is shaping up to be about the most complex thing i’ve worked on thus far in unity so keep that in mind. the only bit of information i seem to have found, would be this : Unity - Scripting API: Texture2D.ReadPixels but again, i have no idea how i would go about implementing it into a script.

thanks in advanced for any and all help! :smile:

ReadPixels is for storing the screen into an array.
You want GetPixel(s)