Skip to main content

All Questions

0 votes
0 answers
78 views

Netcode for Gameobjects - Client has very slow movements

I'm trying to make a simple multiplayer project using some tutorials on YouTube. For the movements I'm using the New Input System and CharacterController.Move, to rotate the player I'm using ...
Cut_22 - Ramon A. Ferreira -'s user avatar
0 votes
1 answer
51 views

How to reduce the delay when spawning a gameobject from the client side

I have this code that spawns a ball and throws it in the direction where the player is looking, later I want to make a system for throwing items from the inventory, but I have a problem with ...
Jonda_MC's user avatar
0 votes
0 answers
224 views

Unity Netcode How to reparent an object using NetworkObject.TrySetParent()

I am making a game where the player is a spaceship that flies between planets. When the ship lands on a planet, it should parent to that planet to keep it from falling off. This works fine for the ...
Podhakkin's user avatar
0 votes
0 answers
68 views

NetworkVariableBase.MarkNetworkBehaviourDirty Error in Unity

public class Generate : NetworkBehaviour { private NetworkVariable<float> decreament = new NetworkVariable<float>(10); void Update() { decreament.Value -= Time....
Dipto Debnath's user avatar
0 votes
1 answer
238 views

Can't spawn network object

I tried spawning a prefab I made, and I keep getting the following error message: "NotListeningException: NetworkManager is not listening, start a server or host before spawning objects". ...
B4iT's user avatar
  • 1
0 votes
2 answers
982 views

Untiy Netcode For GameObject unable to connect to remote server

I am recently trying out the new unity networking solution which is netcode for gameobjects . In Unity using netcode for gameobjects i tried making a simple game which consist of a server and clients ...
Sekhar JD's user avatar
1 vote
2 answers
2k views

Unity Netcode for gameobjects, NetworkList results in Memory leak

I'm having a problem with unity's netcode NetworkList, it Works fine when testing in editor except that I get two error messages saying "A Native Collection has not been disposed, resulting in a ...
Noobis Sk's user avatar
0 votes
1 answer
712 views

Unity Netcode ServerRpc is executing only on client

I'm trying to learn Unity Netcode. Essentially, a PlayerController will be present on both the host and the client. The PlayerController prefab has the Network Object component, and has been added to ...
agentsmith200's user avatar
0 votes
1 answer
315 views

OnStartLocalPlayer() is not overriding

I make multiplayer script and OnStartLocalPlayer method can't override for some reason. Error: Assets\Sharoidi\Scripts\PlayerController.cs(10,26): error CS0115: 'PlayerController.OnStartLocalPlayer()':...
Alexander Grin's user avatar
2 votes
1 answer
5k views

Unity Netcode: Change Ownership doesn't work for me

I have been trying to spawn gameObject(Specifically Player gameObject) in Server using this player.GetComponent().Spawn() and then tried to change ownership. It didn't works for me. So frustrated. Can ...
Jarvis's user avatar
  • 31
2 votes
1 answer
2k views

Unity Netcode's ClientRpc is not being sent across the network

I copy and pasted Unity Netcode's example code from https://docs-multiplayer.unity3d.com/docs/advanced-topics/message-system/clientrpc to test it out. This is my exact code: public class Test : ...
user avatar
1 vote
1 answer
216 views

Unity 5 MultiPlayer NetworkTransport.Send

So I'm new to Unity and need to make a multiplayer game where I could sync clients with the interface on the Game server, I've created a Client and a server and the client do connect to the server but ...
SaifGo's user avatar
  • 174
2 votes
1 answer
914 views

Photon Voice chat and Speech to text not working together

I am creating multiplayer game using photon. The game also supports photon voice. I do want to support some bot mechanism where user can ask some questions to bot. With predefined command to bot (hey ...
chetan rane's user avatar
1 vote
1 answer
1k views

Problem in authority shifting of non-player object

I am making a multiplayer game and I want to have player to interact with a non-player object (whose transform can be changed by any player). When I interact them with the player who joined first (or ...
Haseeb Asif's user avatar
0 votes
1 answer
423 views

Client player not visible in server unity 5

Here I am trying to instantiate Player in client with button click. Here is my script. I can see server in client but can not see client player in server. Anyone can help.? I am Instantiate player ...
moje_mast_ram's user avatar

15 30 50 per page