07-11-2018 07:49 AM
IEnumerator DoOculusSetup() {
#if OCULUS
try {
Core.AsyncInitialize("XXXXXXXXXXXX");
Entitlements.IsUserEntitledToApplication().OnComplete(CallbackOculusGetEntitlement);
} catch(UnityException e) {
Debug.LogError("Oculus platform failed to initialize due to exception:");
Debug.LogException(e);
// Immediately quit the application.
UnityEngine.Application.Quit();
}
#endif
yield break;
}
void CallbackOculusGetEntitlement(Message msg) {
if (msg.IsError) {
Debug.LogError("[Oculus] You are NOT entitled to use this app.");
UnityEngine.Application.Quit();
} else {
Debug.Log("[Oculus] You are entitled to use this app.");
}
return;
}
07-11-2018 07:51 AM
07-12-2018 10:38 AM
07-12-2018 10:56 AM
07-13-2018 01:43 PM
07-17-2018 03:44 PM
07-30-2018 10:16 AM
07-30-2018 10:16 AM
08-15-2018 07:15 AM
08-20-2018 03:06 AM