Hi there,
I'm new with Photon and I've just learnt the basic with the tutorial.
However, I'm stuck when I want to use the Oculus Avatar tutorial described here:
https://doc.photonengine.com/en-us/pun/v2/demos-and-tutorials/oculusavatarsdk
In the following part, the
PhotonNetwork.AllocateViewID()
method in PUN2 is taking a PhotonView as a parameter, and return a bool instead of an int.
How can I modify this code to work with PUN2? Am I missing something?
public void OnJoinedRoom()
{
int viewId = PhotonNetwork.AllocateViewID();
RaiseEventOptions raiseEventOptions = new RaiseEventOptions
{
CachingOption = EventCaching.AddToRoomCache,
Receivers = ReceiverGroup.All
};
SendOptions sendOptions = new SendOptions
{
Reliability = true
};
PhotonNetwork.RaiseEvent(InstantiateVrAvatarEventCode, viewId, raiseEventOptions, sendOptions);
}
Thanks in advance for your help!