We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug: HelloWorldManager.cs references HelloWorldPlayer which has not yet been created in the tutorial on this page:
https://github.com/Unity-Technologies/com.unity.multiplayer.docs/blob/main/docs/tutorials/get-started-with-ngo.md
Simply commenting out the body of SubmitNewPosition() allows the script to work.
static void SubmitNewPosition() { //if (GUILayout.Button(NetworkManager.Singleton.IsServer ? "Move" : "Request Position Change")) //{ // if (NetworkManager.Singleton.IsServer && !NetworkManager.Singleton.IsClient) // { // foreach (ulong uid in NetworkManager.Singleton.ConnectedClientsIds) // NetworkManager.Singleton.SpawnManager.GetPlayerNetworkObject(uid).GetComponent<HelloWorldPlayer>().Move(); // } // else // { // var playerObject = NetworkManager.Singleton.SpawnManager.GetLocalPlayerObject(); // var player = playerObject.GetComponent<HelloWorldPlayer>(); // player.Move(); // } //} }
The text was updated successfully, but these errors were encountered:
Also a using HelloWorld; is needed since the HelloWorldPlayer is in a different namesapce (when you get to it in the tutorial).
Sorry, something went wrong.
jabbacakes
No branches or pull requests
Describe the bug:
HelloWorldManager.cs references HelloWorldPlayer which has not yet been created in the tutorial on this page:
https://github.com/Unity-Technologies/com.unity.multiplayer.docs/blob/main/docs/tutorials/get-started-with-ngo.md
Simply commenting out the body of SubmitNewPosition() allows the script to work.
The text was updated successfully, but these errors were encountered: