Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Oculus Avatar with PUN2

$
0
0
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!

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>