09-26-2017 08:13 AM
NullReferenceException: Object reference not set to an instance of an object
Users.GetLoggedInUser().OnComplete(GetLoggedInUserCallback);
void GetLoggedInUserCallback(Message<User> msg) { if (msg.IsError) { Debug.Log("ERROR: " + msg); return; }
Debug.Log(" I am " + msg.Data.OculusID); }
09-26-2017 08:54 AM
Oculus.Platform.Core.Initialize();
09-26-2017 10:04 AM
delphinius81 said:
Did you initialize the platform by callingOculus.Platform.Core.Initialize();
first?
ERROR: Oculus.Platform.MessageWithUser
UnityEngine.Debug:Log(Object)
Target:GetLoggedInUserCallback(Message`1) (at Assets/Scripts/Target.cs:76)
Oculus.Platform.RequestCallback`1:HandleMessage(Message) (at Assets/OculusPlatform/Scripts/Callback.cs:131)
Oculus.Platform.Callback:HandleMessage(Message) (at Assets/OculusPlatform/Scripts/Callback.cs:148)
Oculus.Platform.Callback:RunCallbacks() (at Assets/OculusPlatform/Scripts/Callback.cs:55)
Oculus.Platform.Request:RunCallbacks(UInt32) (at Assets/OculusPlatform/Scripts/Request.cs:35)
Oculus.Platform.CallbackRunner:Update() (at Assets/OculusPlatform/Scripts/CallbackRunner.cs:28)
09-26-2017 11:04 AM