Can I load personalised Oculus Avatars from multiple accounts during development? — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

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

viewportviewport Posts: 81
Hiro Protagonist
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?

Answers

  • owenwpowenwp Posts: 681 Oculus Start Member
    Did you try adding their accounts as testers in the dashboard?
  • viewportviewport Posts: 81
    Hiro Protagonist
    edited June 2018
    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.
Sign In or Register to comment.