void OnPostRender() { int result = GameJoySDK.getGameJoyInstance().EndDraw(); if (hasPrintLog == false) { Debug.Log("GameJoy on post render | result=" + result); hasPrintLog = true; } if (result == 1) { Debug.Log("GameJoy on post render | result=" + result); int cameraCount = 0; //Camera.main.Render (); Camera[] cameras = Camera.allCameras; if (cameras != null) { foreach (Camera camera in cameras) { if (camera != null) { camera.Render(); cameraCount++; } } } Debug.Log("GameJoy on post render camreas = " + cameraCount); } }
void OnPreRender() { int result = GameJoySDK.getGameJoyInstance().BeginDraw(); if (hasPrintLog == false) { Debug.Log("GameJoy on pre render | result = " + result); hasPrintLog = true; } }