- Home /
Problem with GetNativeTextureID() Unity 3.5 on Windows
Hi there,
I'm using GetNativeTextureID() to access a texture written by a plugin. Unfortunately, this interface seems to be broken since the recent update to Unity 3.5. At least on Windows running Unity in OpenGL mode (force-opengl). I know that the Unity crew does not support any longer OpenGL on Windows, but I couldn't find any hint wether or not the GetNativeTextureID() interface is depricated. Somebody has some information about that?
We think about switching to Directx but to access a texture seems to be much more complicated. Anybody has tried that?
thanks
Answer by Kryptos · Apr 24, 2012 at 01:40 PM
GetNativeTextureID() is only supported on mobile device (devices with OpenGL/ES).
Why -1 vote? What I said is true!
This function is only supported on OpenGL/ES devices.
As I just found this whilst searching for information I thought it worth updating. GetNativeTextureID() is not restricted to mobile devices, it should work on anything that's using OpenGL including OS X- and Windows when it's forced into OpenGL mode (as the original poster had done), although as they noted it's no longer supported.
I am trying to get this working myself at the moment, shall add more details if I manage it.
Your answer
Follow this Question
Related Questions
Extremely slow texture upload in plugin when a model is being drawn 1 Answer
Shader not working in OpenGL (Working in DirectX) 0 Answers
Problem, Textures updated by plugin won't behave as expected in combination with HLSL shader 2 Answers
Overall quality became worse after changing to Windows from Mac 1 Answer