Problem
Display turns black when an object that's potentially being instantiate every frame is in view
How to reproduce
- Import Cardboard SDK on the Project
- Assign a script to any appropriate object with the following code.
public GameObject prefab;
void GenerateObject(){
Instantiate(prefab);
}
void Update(){
if ( once ){
GenerateObject();
}
}
- Attach any appropriate prefab to the prefab above on Unity inspector.
- Launch the app on android device with "Build and Run".
- Display turns black when an object that's potentially being instantiate every frame is in view. Settings button will also disappear. When the instantiate object is out of sight, the view turns normal. Settings button will appear.
Environment
Unity Version:5.0.0.1f
Cardboard SDK Version:v0.4.9
Device:Nexus5, nVidia SHIELD Tablet 2