Thank you for your answer! Can you please tell me where and what in my code I have to say if I want to change the color of only one pixel? I’m quite new to programming and having some difficulties…
Before that point you would need to decide the color, and assign the decided color.
First off, welcome, but realize that what you are doing has virtually ZERO to do with the massive capability and function of Unity3D and what it brings to the table.
Unity is far more powerful than that, as a fully-3D engine, and as such it isn’t really set up for pixel manipulation.
Setting and clearing individual pixels in realtime today is a whole special subset of game development, embodied by such systems as Pico-8 and other suchlike low-level pixel-oriented engines.
Unity is NOT that engine, but of course Unity lets you do just about anything. Just know that NOTHING you are doing with pixels above has anything directly to do with Unity. You’re basically just changing a color cell (pixel), which is simply copying a piece of data (the color) into that pixel. It’s merely incidental that Unity is presenting that colored texture to you (I presume) somewhere down the line.