- Home /
OpenGL in UnityPlayerActivity
Hi,
We are developing AR application using Unity for Android Platform.
We wanted to update texture of the Unity Game Object from Android Activity. We hope that it can be done with the help of texture.GetNativeTextureId(). But , Android allows to use the OpenGL in GLSurfaceView [ GLSurfaceView.Renderer ]. I understand that UnityPlayerActivity is using GLSurfaceView, but No way to put the code on Renderer class methods.
Any suggestion to put the open GL code on unity player activity or can we achieve this by other alternative approach. It is very helpful If any code example or link has been pointed which shows how to use the texture.GetNativeTextureId().
Thanks,
Otherway around, How can I display my android camera view behind the unity game object?
Your answer
![](https://koobas.hobune.stream/wayback/20220613073210im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Rendering Android native view with OpenGL 0 Answers
OpenGL does not work in the Android plugin 1 Answer
OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY -- Vuforia AR 1 Answer
Differences between Android and iOS graphics 0 Answers
polygon crop an image 0 Answers