Pixel colour values around the 3d cube

Hi everyone,

I am an engineer, focused on the Mechatronics Engineering, recently started with unity to model a sensor output. According to the sensor readings i’m trying to change the pixel colour values around the 3d cube.

For ex: Scale of X =10 , Y = 9 and Z = 1. I want to change the colours of the pixel by pixel in x and z sides.

Thanks for your reading.
Niraj

Sorry, I can’t understand what you want to do. Can you try to explain more, or give a few examples?

Thank you very much for taking time to help me.

I have a cube like above and lets assume small yellow square is an one pixel. What I want to do is change the colour of that particular pixel first using a script, and next using a loop change the colour dynamically in yellow, red and blue and other surfaces.

Well, to change the color of individual pixels in an image, you may find it convenient to use PixelSurface (discussed here).

Or if your cube is composed of larger surfaces, you can give each square its own material, and then just set the material color.

Creating a color in code is very easy, as shown here.