I use several Cameras set to Depth Only in my Scene for layering Effects and for GUI. It works in the Editor but doesn't on the device, an Ipad Air.
A quick websearch led me to topics like:
I quote from that:
"Essentially, we had to change the native video background to render in OnPreCull() instead of Update() in order to support Unity4.2, where rendering outside the main render loop is no longer supported."
So how do I do that? Can I still do something with the instantiated Background Cam from Vuforia or do I have to write a script of my own for getting the camera image and displaying it on something?
I tried getting the image and displaying it with a shader that uses screenspace Uvs, and it works in Editor, but on the device I get a black background with a small video image in one corner.
This is what I wrote:
public Renderer backgroundPlane;
void Start ()
Texture2D mTexture = new Texture2D(0, 0, TextureFormat.RGB565, false);
mTexture.filterMode = FilterMode.Bilinear;
mTexture.wrapMode = TextureWrapMode.Clamp;
// Assign texture to the renderer
Debug.Log("Failed to setVideoBackgroundTexture " + mTexture.GetNativeTextureID());
Debug.Log("Successfully setVideoBackgroundTexture " + +mTexture.GetNativeTextureID());
Sorry if I'm dumb here, but I have to get this project finished in a week, and this is just another thing on my plate that I don't need right now.
Any help or pointers would be appreciated.