Say I have a Texture2D that I’ve loaded via the WWW class. If I wanted an an array containing the color data of that texture where should I turn?
I’ve looked into the EncodePNG() function, which returns a byte list, and while that works for the most part I don’t seem to understand how to use the information I get back. For example, if I have a 2x2px png (red, green, blue, then empty from top-left) I encode and debug print each byte, I get back 77 lines of debug, none of which contain a value of 255.
What I want, I guess, is a list of Vector4/Color data for each pixel in a Texture2D in some sensible order. Is this possible?