Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
drew.lietzenmayer's avatar
drew.lietzenmayer
Honored Guest
4 years ago

How to open Oculus Avatar Creator from game with Unity

Hello!

I am trying to open Oculus's Avatar creator from a link in my game. I have it detecting whether you have the default Avatar or a user created avatar. However, from what I've found searching on the net I have only seen a deep link as a way to open apps. However, that requires an appID and if Avatar Creator does have one I can not find it. Is there another way to handle this? Or an appID?  Using Unity game engine.

Thanks!

3 Replies

Replies have been turned off for this discussion
  • olaysia's avatar
    olaysia
    Expert Protege

    Hey Drew, try this:

    AvatarEditorDeeplink.LaunchAvatarEditor()
  • Hello!

    How I`m can receive callback or event when user return from avatar editor to my app.
    Thanks.

    • olaysia's avatar
      olaysia
      Expert Protege

      I wasn't able to find a callback for this. Instead I got around this problem by turning a flag on once the user opens the menu, and then when the app is un-paused I check that flag and if its true I re-load the avatar:

      private void OnApplicationPause(bool pause)
              {
                  if (!pause && m_isEditingAvatar) //User must have returned to app after finishing editing their avatar
                  {
                      m_isEditingAvatar = false;
                      RecreateMyAvatar();
                      Close();
                  }
              }