Hi !!!
I need to modify a texture once per frame using several Texture2D.SetPixel () methods (cannot use Texture2D.SetPixels () due to my subsystem implementation).
My question is: it is better to call the Texture2D.Apply () function to a texture modified with the Texture2D.SetPixel () or to alternate 2 different textures by assigning one or other (however modified with Texture2D.SetPixel () ) in the void OnGui () function?
Maybe this question could sound a bit strange but the point is that I don’t know how the Texture2D.SetPixel () and the Texture2D.Apply () functions work.
I presume that the Texture2D.SetPixel () function will change the pixel value in the texture that is stored in the RAM while the Texture2D.Aplly () function will take the texture stored in the RAM and store it in the VRAM.
If the things is as I said switching 2 textures will be useless because it could be the same as to do a texture2D.Apply ().
Can someone please tell me how these 2 funtion works?
THANKS !!! ![]()