oculus-samples / Unity-SharedSpaces

Oculus multiplayer showcase demonstrating basic multiplayer functionality in Unity. Including: Oculus Social APIs, Oculus Platform authentication, Photon Realtime, and Photon Voice with Oculus Spatializer. The Oculus SDK and other supporting material is subject to the Oculus proprietary license.
MIT License
222 stars 98 forks source link

Photon realtime issues #10

Closed abrown1982 closed 2 years ago

abrown1982 commented 2 years ago

Importing into Unity at the moment in the latest LTS version throws a couple of errors I've not been able to resolve.

Library\PackageCache\com.community.netcode.transport.photon-realtime@1d5be27015\Runtime\PhotonRealtimeTransport.cs(260,30): error CS0115: 'PhotonRealtimeTransport.Initialize()': no suitable method found to override

and

Library\PackageCache\com.community.netcode.transport.photon-realtime@1d5be27015\Runtime\PhotonRealtimeTransport.Connection.cs(9,26): error CS0534: 'PhotonRealtimeTransport' does not implement inherited abstract member 'NetworkTransport.Initialize(NetworkManager)'

Is there an obvious fix to this? Thanks.

pr0-zac commented 2 years ago

It appears you have a newer version of Netcode for Gameobjects that is incompatible with the older version of Photon Realtime. You can check by comparing your manifest.json to /Packages/manifest.json.

We haven't yet tested the project with the latest packages, but we found a commit in Photon Realtime that addresses this exact problem.

You can either downgrade you Netcode for Gameobjects to pre5 or upgrade your Photon Realtime.

pr0-zac commented 2 years ago

We're going to consider this issue resolved. If you are still having trouble, please let us know.