Giter Site home page Giter Site logo

oculus-samples / unity-sharedspaces Goto Github PK

View Code? Open in Web Editor NEW
216.0 216.0 97.0 39.55 MB

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.

License: MIT License

ShaderLab 0.24% C# 99.54% JavaScript 0.22%

unity-sharedspaces's People

Contributors

alexthiv avatar jasonmeisel avatar pr0-zac avatar ryandle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unity-sharedspaces's Issues

Photon Realtime Transport for Netcode for GameObjects Issues

Follow up from #10.

Updated to the newer version 2.0.1 of "Photon Realtime Transport for Netcode for GameObjects" which removed the issues above but throw in two new errors in Unity 2021.3.10f1.

Assets\SharedSpaces\Scripts\SharedSpacesSession.cs(28,25): error CS0176: Member 'NetworkManager.ServerClientId' cannot be accessed with an instance reference; qualify it with a type name instead

Assets\SharedSpaces\Scripts\SharedSpacesSession.cs(70,23): error CS0176: Member 'NetworkManager.ServerClientId' cannot be accessed with an instance reference; qualify it with a type name instead

On the other hand, downgrade Netcode for Gameobjects to 1.0.0-pre.5 works without error.

Why is Photon Voice used instead of Oculus VoIP?

Hi Oculus Samples Team,

I am evaluating available SDKs for Networking in Quest. I was considering using Oculus VoIP for voice chat, but in this sample I see that Photon Voice is used. Is there a reason why the Oculus VoIP is not used? Was it only a practical decision since Photon is already used in Transport Layer for Netcode?

How to change text

Hey! I was wondering how to change the text in the lobby. I saw the "lobby_text_bc.png" image but had no idea what to edit. Any help would be appreciated!

Adding additional Oculus Interaction SDK elements

I am trying to add some additonal folders from the Oculus Integration so that I can add some elements from the Interaction SDK. Mainly I want to swap the player locomtion from TP to the standard OVR Camera Rig used in the example scenes in the Interaction SDK as I will be implmenting hand tracking and some other parts.

It looks like the Shared Spaces uses a custom version of the Oculus INtegartion which wont let me add any additonal directories from package manager. When attemtping to copy them in from another project it creates a long list of errors and duplication.

How can I go about adding the Interaction SDK and most importantly changing the player perspective from the current one to the FP view and locomotion used in the Interaction SDK?

Why is realtime being used instead of fusion?

Hello!
I wanted to ask you why you have decided to use Realtime instead of Fusion photon service. We are currently trying to decide which technology to use for a project and we have found this project to be really useful but, at least for now, we thought that Fusion was probably a better solution than Realtime when working with Unity.
Could you provide us with more insight into that decision? We would greatly appreciate it!
Thank you very much and thank you for this great example :)

Unable to open share link in the Invite Panel

Hi there,

I'm having trouble accessing the share link in the Invite Panel by pressing the share link button and it just shows me a popup saying there's trouble loading my share link. Any thoughts on what is missing here?

Update: I figured that the link would appear fine if I switch to my primary account on device which is also linked to my personal facebook account, but won't work if I use the other account added to the device and it was initially created through my work email.

Thanks!

When I "build and run" I get a blank world

I have followed the tutorial on the Meta site that uses this sample and I got all the way to building the game and exporting to my Quest. (one small difference is that I'm on a Mac so I am not using the ODH app to put the game on my headset - instead I'm using the "build and run" option in Unity. After Unity exports the apk to my quest it starts the app and I see a completely blank world with a horizon but nothing else (other that my controllers). I can see my controllers and see that they are working (buttons click etc) but I see not objects or anything to interact with.

Any Idea what could be happening here?

InvalidOperationException using latest Netcode for GameObjects

I'm using current Unity 2021 LTS version. The current Netcode for Game Objects package (1.0.2). I've applied the patch to Photon realtime mentioned in Issue #10.
Everything seems to work fine until you get 2 or more players in a room, and then the log is spammed with:
"InvalidOperationException: Client is not allowed to write to this"

And some of the players see the other players unable to move.

It seems that the updated Netcode for Game Objects removed the ability for clients to write to NetworkVariables as mentioned here: https://forum.unity.com/threads/networkvariable-write-permission.1176548/
So that seems like a likely culprit here. It would be nice to get this sample app working again.
Any pointers on how to fix it?

Amount of simultaneous players

Hi!

  • Do you have an idea of how many players a room in this setup can hold at the same time without lagging issue?

  • Was it tested on more than 3 players?

Seems like Photon region setting can affect that, but we were having issues with testing it when there were more than 3-4 players.

Any info regarding that topic can be useful.
Thanks!

Runtime error when building the project on Apple Silicon

Hi,

I'm new to Unity 3D, when I was trying to run theb project on my Macbook(Apple silicon) it gave me runtime error like this:

DllNotFoundException: OVRGamepad assembly: type: member:(null)
OVRInput+OVRControllerGamepadMac..ctor () (at Packages/Oculus/VR/Scripts/OVRInput.cs:2841)
OVRInput..cctor () (at Packages/Oculus/VR/Scripts/OVRInput.cs:284)
Rethrow as TypeInitializationException: The type initializer for 'OVRInput' threw an exception.
OVRControllerHelper.Update () (at Packages/Oculus/VR/Scripts/Util/OVRControllerHelper.cs:109)

I tried many ways and none of it seemed to work. I don't know if it's because of the fact that it's a M1 or package incompability.

not referenced assembly error.

Library\PackageCache\com.community.netcode.transport.photon-realtime@9ce49ba7e4\Runtime\PhotonRealtimeTransport.cs(518,17): error CS0012: The type 'NativeList<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

I have tried creating one, no luck. I have no clue what it wants.

UnitySharedSpaces from github doesnt show avatar while the UnitySharedspaces already in applab works fine

Hello,

I got UnitySharedspaces to work across two meta quest 3 devices by using the already deployed app from applab.
Then i download the github code and followed the video and blog instructions for deployment.
when i run those from github both headsets do not show the avatar and im not able to move around the room im stuck in the middle of the room. When i lift my hands up the controllers are there and even animate when i press the joystick.

No longer works on Oculus

It compiles and runs just fine on Win64.
The Android/Oculus build compiles and links fine. HOWEVER it just produces a white screen and nothing else. ADB produced a few hundred error messages, among them null variable errors with no object references, file names, or line numbers. Impossible to debug.

It seems like the main issue is that this "race condition" for the Host (`OnClientConnected` is called earlier than `OnHostStarted`) breaks the flow and with that fix above single player works, but multiplayer then has the same issue (Client gets NullRef in OnClientConnected too, basically FindObjectOfType<SharedSpacesSession>() returns null).

It seems like the main issue is that this "race condition" for the Host (OnClientConnected is called earlier than OnHostStarted) breaks the flow and with that fix above single player works, but multiplayer then has the same issue (Client gets NullRef in OnClientConnected too, basically FindObjectOfType() returns null).

Is there any specific reason why that "race condition" or problem with SharedSpacesSession for both host and client may be happening?

Originally posted by @ilyavitek in #4 (comment)

Unable to get this app anymore from applab with quest 3 or quest 2

I have two meta accounts, one for my quest 3 and one for my quest 2.

i am unable to get the unity version of shared spaces from any of those app labs.

the only one i can see is the shared spaces for UNREAL and only on my quest 2.

ive done everything that was told. i logged into different browsers on my laptop, with the meta quest account that is associated with each headset and went to the link for the unity shares spaces and pressed "get" or "purchased"

but the apps never appeared on my headset or in the oculus app for me to install on the headset. other applab things ive used appear on both.

i guess i have to do a manual install??

Unity Exception: Can not sign the application.

I was getting the error Unity Exception: Can not sign the application when trying to build the project. I did not make any edits to the project settings or anything.

I "fixed" it by unchecking the Custom Keystore setting in Project Settings -> Player -> Publishing Settings.

Not sure if that's a good move or not /shrug

DllNotFoundException when running Startup scene in Unity Editor

Good morning, I configured the project as in the authors' notes, and was able to install the application on my Quest Pro.
However, upon opening the application I find myself in a completely empty white room; no panel is present nor is my avatar.
I then tried to run the Startup scene in Unity Editor, and this error pops up in the Unity Console:
DllNotFoundException: LibOVRPlatform64_1 assembly: type: member:(null)
Oculus.Platform.WindowsPlatform.AsyncInitialize(System.String appId) (at Library/PackageCache/[email protected]/Scripts/WindowsPlatform.cs:43)
Oculus.Platform.Core.AsyncInitialize (System.String appId) (at Library/PackageCache/[email protected]/Scripts/Platform.cs:74)
SharedSpacesApplication+d__21.MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:172)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <53aac14d88ba4477acc998b039cfd73a>:0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
SharedSpacesApplication:Start() (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:167)

Are these two things connected? how do I manage to resolve this issue?
Thanks

Null Refrence when running.

NullReferenceException: Object reference not set to an instance of an object
SharedSpacesApplication.OnClientConnected (System.UInt64 clientId) (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:88)

Entitlement check fails when running sample in unity editor

Is it supported to run this example within the unity player? I've followed the steps in the readme, but when I try to run it, I hit entitlement check failures for the app id I registered & configured in OculusPlatformSettings.asset.

(I've also tried to build & run the app on the quest directly, it doesn't get to the lobby and I'm not sure how to collect logs in that case - still learning unity.)

Here's the logs when it is run in the unity player:

Unity v2020.3.25f1, Oculus Utilities v1.67.0, OVRPlugin v1.67.0, SDK v1.0.20.
UnityEngine.Debug:Log (object)
OVRManager:InitOVRManager () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1436)
OVRManager:Awake () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1594)

SystemHeadset Oculus_Link_Quest_2, API OpenXR
UnityEngine.Debug:LogFormat (string,object[])
OVRManager:InitOVRManager () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1441)
OVRManager:Awake () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1594)

OpenXR instance 0x54D800000001 session 0x0
UnityEngine.Debug:LogFormat (string,object[])
OVRManager:InitOVRManager () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1445)
OVRManager:Awake () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1594)

Current display frequency 0, available frequencies []
UnityEngine.Debug:LogFormat (string,object[])
OVRManager:InitOVRManager () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1543)
OVRManager:Awake () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1594)

TcpListener started. Local endpoint: 0.0.0.0:32419
UnityEngine.Debug:LogFormat (string,object[])
OVRNetwork/OVRNetworkTcpServer:StartListening (int) (at Packages/Oculus/VR/Scripts/Util/OVRNetwork.cs:95)
OVRSystemPerfMetrics/OVRSystemPerfMetricsTcpServer:OnEnable () (at Packages/Oculus/VR/Scripts/Util/OVRSystemPerfMetrics.cs:186)
UnityEngine.GameObject:AddComponent<OVRSystemPerfMetrics/OVRSystemPerfMetricsTcpServer> ()
OVRManager:InitOVRManager () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1554)
OVRManager:Awake () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1594)

[OVRNetworkTcpServer] Start Listening on port 32419
UnityEngine.Debug:LogFormat (string,object[])
OVRNetwork/OVRNetworkTcpServer:StartListening (int) (at Packages/Oculus/VR/Scripts/Util/OVRNetwork.cs:107)
OVRSystemPerfMetrics/OVRSystemPerfMetricsTcpServer:OnEnable () (at Packages/Oculus/VR/Scripts/Util/OVRSystemPerfMetrics.cs:186)
UnityEngine.GameObject:AddComponent<OVRSystemPerfMetrics/OVRSystemPerfMetricsTcpServer> ()
OVRManager:InitOVRManager () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1554)
OVRManager:Awake () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1594)

[OVRManager] OnApplicationPause(false)
UnityEngine.Debug:Log (object)
OVRManager:OnApplicationPause (bool) (at Packages/Oculus/VR/Scripts/OVRManager.cs:2178)

[OVRManager] OnApplicationFocus(true)
UnityEngine.Debug:Log (object)
OVRManager:OnApplicationFocus (bool) (at Packages/Oculus/VR/Scripts/OVRManager.cs:2186)

Group Presence set successfully
UnityEngine.Debug:Log (object)
SharedSpacesGroupPresenceState/d__17:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:65)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication/d__20:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:183)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication:Start () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:164)

------GROUP PRESENCE STATE------
UnityEngine.Debug:Log (object)
SharedSpacesGroupPresenceState:Print () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:73)
SharedSpacesGroupPresenceState/d__17:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:66)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication/d__20:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:183)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication:Start () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:164)

Destination: Lobby
UnityEngine.Debug:Log (object)
SharedSpacesGroupPresenceState:Print () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:74)
SharedSpacesGroupPresenceState/d__17:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:66)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication/d__20:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:183)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication:Start () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:164)

Lobby Session ID: Lobby-2739e040
UnityEngine.Debug:Log (object)
SharedSpacesGroupPresenceState:Print () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:75)
SharedSpacesGroupPresenceState/d__17:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:66)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication/d__20:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:183)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication:Start () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:164)

Match Session ID:
UnityEngine.Debug:Log (object)
SharedSpacesGroupPresenceState:Print () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:76)
SharedSpacesGroupPresenceState/d__17:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:66)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication/d__20:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:183)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication:Start () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:164)

Joinable?: True
UnityEngine.Debug:Log (object)
SharedSpacesGroupPresenceState:Print () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:77)
SharedSpacesGroupPresenceState/d__17:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:66)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication/d__20:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:183)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication:Start () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:164)


UnityEngine.Debug:Log (object)
SharedSpacesGroupPresenceState:Print () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:78)
SharedSpacesGroupPresenceState/d__17:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesGroupPresenceState.cs:66)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication/d__20:MoveNext () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:183)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SharedSpacesApplication:Start () (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:164)

OVRControllerHelp: Active controller type: QuestAndRiftS for product Oculus Quest
UnityEngine.Debug:LogFormat (string,object[])
OVRControllerHelper:Start () (at Packages/Oculus/VR/Scripts/Util/OVRControllerHelper.cs:93)

OVRControllerHelp: Active controller type: QuestAndRiftS for product Oculus Quest
UnityEngine.Debug:LogFormat (string,object[])
OVRControllerHelper:Start () (at Packages/Oculus/VR/Scripts/Util/OVRControllerHelper.cs:93)

[OVRManager] HMDAcquired event
UnityEngine.Debug:Log (object)
OVRManager:Update () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1786)

[OVRManager] InputFocusLost event
UnityEngine.Debug:Log (object)
OVRManager:Update () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1874)

Recenter event detected
UnityEngine.Debug:Log (object)
OVRDisplay:Update () (at Packages/Oculus/VR/Scripts/OVRDisplay.cs:122)
OVRManager:Update () (at Packages/Oculus/VR/Scripts/OVRManager.cs:1978)

Oculus Platform SDK initialized successfully
UnityEngine.Debug:Log (object)
SharedSpacesApplication:OnOculusPlatformInitialized (Oculus.Platform.Message1<Oculus.Platform.Models.PlatformInitialize>) (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:208) Oculus.Platform.Request1<Oculus.Platform.Models.PlatformInitialize>:HandleMessage (Oculus.Platform.Message) (at Packages/Oculus/Platform/Scripts/Request.cs:68)
Oculus.Platform.Callback:HandleMessage (Oculus.Platform.Message) (at Packages/Oculus/Platform/Scripts/Callback.cs:162)
Oculus.Platform.Callback:RunCallbacks () (at Packages/Oculus/Platform/Scripts/Callback.cs:61)
Oculus.Platform.Request:RunCallbacks (uint) (at Packages/Oculus/Platform/Scripts/Request.cs:130)
Oculus.Platform.CallbackRunner:Update () (at Packages/Oculus/Platform/Scripts/CallbackRunner.cs:28)

You are not entitled to use this app
UnityEngine.Debug:LogError (object)
SharedSpacesApplication:LogError (string,Oculus.Platform.Models.Error) (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:299)
SharedSpacesApplication:b__21_0 (Oculus.Platform.Message) (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:214)
Oculus.Platform.Request:HandleMessage (Oculus.Platform.Message) (at Packages/Oculus/Platform/Scripts/Request.cs:113)
Oculus.Platform.Callback:HandleMessage (Oculus.Platform.Message) (at Packages/Oculus/Platform/Scripts/Callback.cs:162)
Oculus.Platform.Callback:RunCallbacks () (at Packages/Oculus/Platform/Scripts/Callback.cs:61)
Oculus.Platform.Request:RunCallbacks (uint) (at Packages/Oculus/Platform/Scripts/Request.cs:130)
Oculus.Platform.CallbackRunner:Update () (at Packages/Oculus/Platform/Scripts/CallbackRunner.cs:28)

ERROR MESSAGE: Missing entitlement for 4986813654673010 (1971031)
UnityEngine.Debug:LogError (object)
SharedSpacesApplication:LogError (string,Oculus.Platform.Models.Error) (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:300)
SharedSpacesApplication:b__21_0 (Oculus.Platform.Message) (at Assets/SharedSpaces/Scripts/SharedSpacesApplication.cs:214)
Oculus.Platform.Request:HandleMessage (Oculus.Platform.Message) (at Packages/Oculus/Platform/Scripts/Request.cs:113)
Oculus.Platform.Callback:HandleMessage (Oculus.Platform.Message) (at Packages/Oculus/Platform/Scripts/Callback.cs:162)
Oculus.Platform.Callback:RunCallbacks () (at Packages/Oculus/Platform/Scripts/Callback.cs:61)
Oculus.Platform.Request:RunCallbacks (uint) (at Packages/Oculus/Platform/Scripts/Request.cs:130)
Oculus.Platform.CallbackRunner:Update () (at Packages/Oculus/Platform/Scripts/CallbackRunner.cs:28)

apk Upload failed

hello, I followed all the tutorial without errors.
When uploading my .apk file through ODH I get an "upload failed" error message. No more information.
Thank you

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

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

New rooms

How do I create new rooms in the sample? I've tried everything I know to no avail.

Photon realtime issues

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.

New VRC

there is a new VRC guideline for user reporting, will this be added?

Starting the app Throws NullReferenceException at SharedSpacesApplication.OnClientConnected

Trying to make that sample work on my machine with my test app.

One of the first issues were Entitlements, since there are nothing about them in Readme I assumed that it should work, but I was stuck in empty scene. Fixed that by adding entitlements to my test App in Oculus Dashboard (maybe it would make sense to mention that in Readme).

Next issue was not seeing Avatar, for some reason I had nothing assigned to PlayerPrefab in SharedSpacesNetworkLayer GO (Startup Scene). Fixed by referencing SharedSpacesPlayer.prefab.

At the moment game starts and I can run around with my avatar, but there are two issues:

  1. As soon as I start I am seeing NullReferenceException at SharedSpacesApplication.OnClientConnected (looks like session = FindObjectOfType(); sets session to null and then session.RequestSpawnServerRpc throws that, not sure why SharedSpacesSession is not spawned).

Screenshot 2022-01-31 at 17 30 46

  1. I think that this issue may be solved after the first one is solved, but as soon as I join any room I appear in the room, but without avatar and from then on I can not do much.

Screenshot 2022-01-31 at 15 32 56

Would appreciate any help :)

You can find one of the latest states of my fork here: https://github.com/ilyavitek/Unity-SharedSpaces

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.