Adding Image to Canvas using a Texture Source
Posted: 18 Feb 2014, 15:46
I would like to add Images objects to my canvas using the C++ API. My application already has those source images uploaded to the GPU. Rather than downloading them to system memory and then having noesis upload, is it possible to create an image by passing in a texture source? (My textures are GL_TEXTURE_2D format)
I did see this comment in the release notes:
[Unity] Added support for changing Image.Source at runtime by creating a TextureSource from a UnityEngine.Texture2D.
If you have a code snippet that would be most ideal
Thanks
Don
I did see this comment in the release notes:
[Unity] Added support for changing Image.Source at runtime by creating a TextureSource from a UnityEngine.Texture2D.
If you have a code snippet that would be most ideal
Thanks
Don