Question by
JustOne377 · Dec 09, 2017 at 01:32 AM ·
texture2d
How Texture.GetPixels() Works?
First of all, Thanks.
I have a little problem understanding whats going on with Texture2D.GetPixels().
I'm Trying to read all the pixels and put it in a single dimensional array but Ordered, like in the texture where the pixels was got.
The problem is that when i get the Color[] From GetPixels the array is not ordered in the way that i can use it in a for loop for paint a set of squares in a 2D grid. What im doing wrong?
Comment
Your answer
Follow this Question
Related Questions
SetPixels edge pixels 0 Answers
Unity seems to be in 2D, but I want it in 3D 1 Answer
Using bitmaps for Image-processing with Unity 1 Answer
LoadRawTextureData - how to use? 0 Answers