The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Meta Avatar Synch using unity Photon networking

2022-02-15 07:43:38


I'm using Pun for Multiplayer for oculus unity Project. along with avatar 2 SDK (meta avatar SDK) to get the profile avatar.

  • here i'm able to get profile avatar of mine inside the app.

  • but other can't see my avatar they are see me as their profile avatars only or vise versa. it means all avatars in multiplayer is same(device profile avatars).

Please help me how to synch the avatars as well as avatar event like rising hands ets.,


2022-03-22 12:38:12

You need to get the send the oculus user id to other users. I send it in the instantiation data of the PhtonNetwork.Instantiate() function.

Like this:

You can get the logged-in user's id from Users.GetLoggedInUser() function. Like this:

And then you can get the id of this avatar entity from its instantiation data and then assign it to OvrAvatarEntity._userId.After this, call the LoadUser() function to load the avatar. Like this:

2022-03-25 10:35:47

Alternatively use the Custom Player Properties so share the Oculus ID or some other.

Back to top