Something like glTexSubimage

Hi,

I want to replace a part(subimage) of a GUITexture so I am looking for a function similar to glTexSubimage of OpenGL. Is there something like that?

Thanks.

I dont think this is so difficult to answer, is it?

I have checked methods in GUITexture as well as Texture. Maybe I have overseen something in another documentation of another class. But I would expect such a method to be in the GUITexture or Texture class.

Now I have seen the GUI.DrawTexture(…)-method.
I am not sure whether this is what I am looking for. I have called the method but end up in a Null Reference (all input params are set and not null).

Is this method what I need to replace a part of a texture, and if so is there a tutorial where i can learn how to use these GUI classes, methods, …??

Use SetPixels in the Texture2D class.

Or you could create a plugin and call glTexSubImage. You can get the texture ID using GetInstanceID(). You would have to force the player to use openGL and not D3D in windows.

Thanks