Skip to main content
0 votes
0 answers
19 views

Instantiated RigidBody2D momentum stays at 0 or is capped at 1.5 when applying movement

I'm a bit new to coding in Unity2D and I need some help. After I launch the host client, my prefab object is instantiated and Whenever I try to move, my momentum stays at either 0 or 1.5. Jumping is ...
Liam's user avatar
  • 9
0 votes
0 answers
44 views

Unity Netcode's NetworkManager immediately sends disconnect callback to server on pressing X on the window. How do I prevent or delay it?

I have set Application.wantsToQuit to trigger a method which will display a confirmation dialog. Only when pressed Yes, will the application actually quit. But NetworkManager doesn't seem to care ...
sketch1e's user avatar
-2 votes
1 answer
48 views

How to implement an independent camera for a host and client using Unity Netcode For GameObject

I've been follow Code Monkey tutorial on how to make a multiplayer game using Netcode for game object. However, his tutorial didn't cover how to implement independent camera for each player in 3d. I'...
Iceigloopenguin Plays's user avatar
1 vote
1 answer
36 views

Why does the rotation of my gameobject not syncronize between client and host?

I needed my bow to rotate towards my mouse, however even though I have attached a client network transform to it and allowed it to synchronize the z-axis rotation, it only works on the host (if I ...
Alexandre Carneiro da Silva's user avatar
1 vote
1 answer
83 views

How do I call a function on all clients when the host leaves the lobby in Unity Lobbies?

The package automatically disconnects all players and removes the lobby when the host leaves but I need to tell apart players leaving the lobby by themselves from being forced to leave because of ...
Lethion's user avatar
  • 41
0 votes
0 answers
38 views

Strange behavior with player positions synchronization in VR multiplayer app

I'm developing a VR multiplayer application using Netcode for GameObjects with two Quest headsets, and I'm running into a weird synchronization issue. Current behavior: Headset 1 can see its own ...
Hadi Yahia's user avatar
1 vote
1 answer
51 views

player.transform.childCount returns 3, but should return 4

I'm making multiplayer game nad in code where I'm making pick up and drop item. I'm having error that player.transform.childCount is returning 3 right after i add children another children under ...
Jonda_MC's user avatar
0 votes
0 answers
195 views

Unity Netcode (Multiplayer) client is not owner of its player

I created a project and setup all the necessary stuff for multiplayer with netcode for gameobjects. But one thing that is not working is player movement for clients. It says that client is not owner ...
Branislav's user avatar
0 votes
0 answers
85 views

Multiplayer game in Unity riddled with seemingly unsolvable errors: type or namespace Unity Transport not found, and scripts not attachable to gameobj

I'm making a multiplayer game in Unity, and I've started by implementing the multiplayer feature itself. After making good progress, I get an error telling me that type or namespace UnityTransport can'...
Bobcat's user avatar
  • 3
1 vote
1 answer
82 views

A different generation of trees for every player. multiplayer (netcode for gameObjects)

When 2 or more players connect to each other, the trees are generated slightly differently for each player. I tried to add Network transform to the prefab tree, but it didn't help and it's still ...
Jonda_MC's user avatar
0 votes
0 answers
64 views

How can i create one global variable for all clients in multiplier-game (Unity + NetCode)?

I'm just learning how to use NetCode. I need to use ONE variable (string for example) for all clients and host/server. When new client connected to server first time, it can read/write this variable. ...
Happy_cat's user avatar
0 votes
0 answers
35 views

I can't get players to move items

Moving items by the player does not work and produces the error. Perhaps this is some kind of bug; my other projects had the same error. Hope someone can help me. I use unity netcode for gameobjects. ...
Flyen's user avatar
  • 11