Meta Avatar Synch using unity Photon networking
The whole answer can be found below.
Try Our
Documentation
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.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Meta Avatar Synch using unity Photon networking
basha
2022-02-15 07:43:38
Hi,
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.,
Comments
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:
Alternatively use the Custom Player Properties so share the Oculus ID or some other.
Back to top