Questions tagged [unity-networking]
Unity 5.1 introduced a new framework to handle client+server networking, also known as UNet.
unity-networking
179
questions
0
votes
0
answers
33
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 ...
1
vote
0
answers
34
views
How to connect unity dots client and server using unity Relay
I'm trying to make my DOTS game playalbe via Unity Relay. The issue is my client doesn't connect to the server even though I pass port and ip to it.
Thats my connection manger code
public void ...
0
votes
0
answers
28
views
Server authoritative movement + client prediction issue using Fishnet in Unity 6
So my problem is that I implemented a server authoritative movement using a Navmesh Agent in Unity and I tried to implement client side prediction using the Networking framework Fishnet. The problem ...
0
votes
1
answer
27
views
Unity mirror discovery Argument 1: cannot convert from 'method group' to 'UnityAction<ServerResponse>'
I am working on a multiplayer game with unity mirror, I am making connections successfully with networkdiscoveryhud, but when I try to create my own menu buttons instead of networkdiscoveryhud, and I ...
1
vote
0
answers
34
views
Try to sync Lists between Clients and Client/Host
I'm using Unity and Netcode for Game Objects. I want to create my own Cardgame, so I want to have a synced Cardlist which is controlled over the Server/Host.
To get started, I wanted to synchronize a ...
1
vote
0
answers
73
views
(Fishnet + FishySteamworks, Unity) Only the lobby host client spawns in and the second client doesn't
After both of the clients are connected to the lobby, the host presses the host button and this function is called
public void StartGame(){
LoadHubScene(InstanceFinder.ClientManager.Connection);
...
0
votes
0
answers
30
views
Occupied Network Transofrm in Fusion2 Unity
I want to do something like this
[Serializable]
public struct OccupiedTransform
{
public Transform Transform;
public PlayerRef Occupier;
}
[SerializeField] private ...
0
votes
0
answers
31
views
Unity NGO: Delay with throwing things at other people
I am currently making a multiplayer game in Unity with Netcode for GameObjects, and I wanted to have a feature in the game, where if you throw a object at another player, the player dies.
Currently, I ...
0
votes
0
answers
66
views
Unity Netcode Pick up and Hold Script
i was trying to make a script for picking up an object and holding it/carry it in unity networking.
without networking i would just change the parent. this is not possible tho, i can only set a child ...
0
votes
0
answers
58
views
Unity Netcode for Gameobjects - client does not move when connected to dedicated server [ServerRPC ClientRPC]
I have setup of two scenes in my project. I want my movement to be server authoritative.
Scene A:
Object with SceneManager
Object with Preloader script
The preloader script is supposed to start the ...
1
vote
0
answers
71
views
How to mix Unity Scene management and Network Scene Management?
Hello i have an issue dealing with scene management and networkManager.
My game is as follow :
HomeScene (no network at all)
LobbyScene (NetworkManager component is created but scene is loaded using ...
-1
votes
2
answers
561
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 ...
1
vote
0
answers
225
views
How to run script on spawned object for clients in Unity?
I am trying to understand some concepts in Unity.
I am spawning objects on the Host using :
GameObject player = Instantiate(playerPrefab, vector3, Quaternion.identity);
player.GetComponent<...
3
votes
1
answer
180
views
How Client / Server RPC works with global variables?
I am quite new to Unity and i can't find any logical answer to the behaviour i am seeing.
I have written a basic script such as :
public class PlayerPosition : NetworkBehaviour
{
private ...
0
votes
0
answers
30
views
how to make a Relay Game via Lobby group?
if something wrong, sorry! . i am a new on NETCODE multiplayer game
can u everyone tell me how to make a Relay Game with player via Lobby group?
I mean, now i know how to create lobby and relay. but i ...