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

Using Specified Version And Immediately When You Open This 2 Errors In Unity #17

Closed Tonic3 closed 1 year ago

Tonic3 commented 1 year ago

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

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()'

pr0-zac commented 1 year ago

This is the same as closed issue #10 .

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 https://github.com/Unity-Technologies/multiplayer-community-contributions/pull/153 that addresses this exact problem.

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

AlexThiv commented 1 year ago

We have updated the project to Unity 2021.3.16f1, which integrates Netcode for GameObjects 1.1.0. The update of Netcode was the source of the errors you were seeing and this has now been fixed with this updated. https://github.com/oculus-samples/Unity-SharedSpaces/commit/2dc4d4ef4bd6d6185c4fab1c4a459b5b09bc23b2