-
Notifications
You must be signed in to change notification settings - Fork 184
Description
So I have tried using the portals with android for the Oculus Quest as I'm trying to get these portals to work in VR. The portals seem to work fine in the editor but after building to android and placing the build on the Oculus Quest whenever I try to enter a portal, I am teleported to a random location and left to fall through the map. All the scripts are the same as the default ones except for a render script that I changed to work on android but this should not affect teleportation as all I changed was the following,
portalCam.Render();
to
RenderTexture buffer = RenderTexture.GetTemporary(Screen.width, Screen.height, 24);
portalCam.targetTexture = buffer;
portalCam.Render();
Graphics.Blit(buffer, viewTexture);
RenderTexture.ReleaseTemporary(buffer);
I have been trying to fix this for a couple of weeks if anyone has any ideas help would be much appreciated.