Questions tagged [unity-networking]
Unity 5.1 introduced a new framework to handle client+server networking, also known as UNet.
169 questions
0
votes
0
answers
69
views
How to disable lobby/relay for a project in Unity?
Me and a friend created a basic multiplayer game in Unity using Netcode For GameObjects. We also used Lobby and Relay Gaming Services to make it easier to play with each other.
There is only one ...
0
votes
2
answers
272
views
How do I synchronize thousands of game object transforms?
I'm trying to synchronize 3-4 thousand game objects' positions and rotations. I need performance for my Unity game to remain relatively high (30+fps) and to keep the amount of data sent as low as ...
1
vote
0
answers
146
views
Designing a buff/debuff system in a multiplayer game
I'm new to netcode and game dev and I'd like some input on a multiplayer buff/debuff system I'm working on in Unity, using NGO with a dedicated server. I aim to use a server authoritative architecture ...
0
votes
2
answers
193
views
Is this enough calculation on server-side to be secure?
I'm a beginner about client/server calculations and relationships (never trust the client), and I would like to know if I did or didn't get the concept right.
My weapons are calling this function ...
0
votes
1
answer
240
views
Best way to create a 2 player networked game
I've been dabbling in Unity. I learned the basics and I've created a few small games and one larger one. All of them were single player games. Now I want to create a game that's a 2 player - pretty ...
0
votes
0
answers
345
views
Client Player not moving - NetCode for Game objects - NetworkTransform
when the host try to move it works perfectly fine, but on the client, the client player does not move
...
0
votes
0
answers
169
views
Not able to host a Unity Netcode Game on specific device, but I'm able to join as a client on the same device
I'm trying to create a Unity netcode LAN connection between a few devices. It works fine with a few devices as the host or the client, but some devices can only connect as a client and are not able to ...
0
votes
1
answer
243
views
Canvas that should only be visible for local player is also visible for remote players
I'm using Unity NetCode for Game Objects. I have a player Prefab, inside it I have a canvas as a child of my player Prefab (I don't know if it's the best approach), which contains inventory, status, ...
0
votes
1
answer
457
views
Unity HTTP webrequest is very slow on localhost
I'm working on an online game on my computer localhost. to do this I use Xampp.
Anyway, my problem is that the UnityWebRequests ...
0
votes
2
answers
492
views
Host & Client user input moving both Player prefabs at the same time
I have a player controller attached to the Player prefab - along with the NGO components
Network Object Client Network Transform Network Animator
In the Network Manager I have the Player prefab added ...
2
votes
1
answer
213
views
How can I secure my data in Unity?
I have a tenant ID and client secret that I use to access my server and return an API key for users. I put it in start()
However, hackers can decompile my game and access the server data. Is there any ...
1
vote
1
answer
5k
views
Issues using NetworkServer.Spawn with Unity and Mirror-Networking
I am using Mirror to handle the networking aspect
When I spawn an object on the network, I Instantiate it on the server and then use NetworkServer.Spawn to notify all clients to spawn the object.
...
0
votes
0
answers
48
views
Unsure why my transform are not syncing
I am using this Kinematic Character Control package
I setup some Character Controls and all looks like it works fine in local. I am trying to setup some basic Networking.
I installed Network for ...
0
votes
1
answer
1k
views
How do you upload an AudioClip to a server in Unity?
My current approach is to take an AudioClip, turn it into a byte array, then put it into an UploadHandler, attached to a UnityWebRequest, to send a POST request to a server.
Right now, when I pass ...
3
votes
1
answer
1k
views
Unity Netcode how to resolve responsiveness issues on the client?
I have been reading the Unity Netcode manual and other related articles, which explains very clearly why it is essential to care about latency. Still, I haven't seen good examples of implementing a ...