cancel
Showing results for 
Search instead for 
Did you mean: 

Can I load personalised Oculus Avatars from multiple accounts during development?

viewport
Protege
I am able to load Personalised Oculus Avatars while logged into the Oculus account associated with the App on the Oculus Dashboard.

The app has not been released.

While logged into another account on Oculus, my GetLoggedInUserCallback returns an error.

Below is the code I'm running:

public class OculusInitilisation : MonoBehaviour
{
    public bool useTestID;

    public static ulong oID = 0;

    public OvrAvatar myAvatar;

    private void Awake()
    {
        if(myAvatar == null)
        {
            myAvatar = GetComponent<OvrAvatar>();
        }
        if(oID == 0)
        {
            Oculus.Platform.Core.Initialize();
            Oculus.Platform.Users.GetLoggedInUser().OnComplete(GetLoggedInUserCallback);
            Oculus.Platform.Request.RunCallbacks();
        }
        if (useTestID)
        {
            myAvatar.oculusUserID = "10150022857785745";
        }
        else
        {
            myAvatar.oculusUserID = oID.ToString();
        }
    }

    private void GetLoggedInUserCallback(Message<User> message)
    {
        if(!message.IsError)
        {
            oID = message.Data.ID;
        }
        else
        {
            Debug.Log("FAILED TO LOAD AVATAR");
        }
    }
}

The Debug.Log("FAILED TO LOAD AVATAR"); is what runs.

We are building this in Unity 2017.4.2f2 using:
- OVR PlatformSDK v1.24
- OVR Utilities v1.26
- OVR Avatars v1.26

Is this issue because my account is not the one associated with app's ID?

Is there anyway load a personalised avatar from another account during development?
1 ACCEPTED SOLUTION
3 REPLIES 3

owenwp
Expert Protege
Did you try adding their accounts as testers in the dashboard?

viewport
Protege
I've added the accounts I'm using to different builds of the project on the same store listing. Still failed.
I will try running the app through a downloaded build off the store instead though I don't think that would make the difference.

EDIT: I added my second account as a tester and downloaded the build through the Oculus store. The avatar still failed to load.