-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null reference for : SceneManager.CheckForAndSendNetworkObjectSceneChanged(); in NetworkManager Class #3208
Comments
That error means that for some reason the NetworkManager is no longer valid. |
Hi @NoelStephensUnity I have a scene that contains a In the In the
The server then instantiates the desired player, accesses its Each time this process completes, the server checks how many players have spawned in the game. If the number of spawned players reaches the desired count, the server starts the game. The method
Additionally, there is a method named This is the entire process I follow. However, I encounter errors on Android, even though everything works properly in the Unity Editor. |
Hello again, So, I found the problem. - The code for loading the scene using Addressable:
- The code for loading the scene using SceneManager:
|
### Description
I made an online game with NGO and it shows me a lot of null reference errors.
And this error only happens in Android and is not a problem in Unity!
With Android Logcat, I found out that the error is in the Unity NetworkManager script and from this part(Screenshots).
In Android, when the player enters the scene where the NetworkObject is located
In the scene, I have a script to connect to the server, this script works well in Unity
But such a problem occurs in Android
I have no idea where the problem is!!!
Can anyone help me, what is the cause of this error? Thank you.
Screenshots
Environment
The text was updated successfully, but these errors were encountered: