We have noticed that when we have Depth Pass enabled on our GUI, the game crashes on our iOS devices (we have not tested them on Android devices). However, the game does not crash when played in Unity.
According to Xcode this is because of a null reference exception. However, tracking this down has proven difficult due to the fact that the crash only occurs on devices.
This appears to occur immediately after the first-frame initialization of our own systems when Depth Pass is enabled in the editor prior to building out. If Depth Pass is enabled later via code during the run of the program, it will immediately crash after it is activated.
Also, this is how we have our GUI setup (just in case we did something wrong):
- UI Root (3D) (UI Panel)
- Camera
- GUI #1
- Panel (UI Panel)
- GUI #2
- Panel (UI Panel)
- GUI #3
- Panel (UI Panel)
Each panel contains the different NGUI functions depending on what type of GUI we wanted it to be. Any help you can provide for us will be greatly appreciated. Thanks!