Questions tagged [unity-networking]

Unity 5.1 introduced a new framework to handle client+server networking, also known as UNet.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Communication Between Client and Seperate host Unity Unet

I building a realtime multiplayer game like a small quiz game that players can able to join the game and then quiz master who handling the host will launch the game. I need to that how to do this ...
0
votes
1answer
33 views

How can I use websockets in a Unity WebGL project?

There are plenty of good Websocket APIs for C#, but I run into trouble when targeting Unity WebGL due to this restriction described in the Unity documentation: No direct socket access Due to ...
0
votes
0answers
17 views

Authoritative server running multiple Unity scenes

I want to develop a 2d multiplayer game using an authoritative dedicated server where each session contains up to 4 players and I thought of multiple ways to develop this and I can't decide what's ...
0
votes
0answers
63 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
2answers
48 views

How can I read a value from a file accessed via the Internet?

I have made text file and I put it on Dropbox, I have in this text file a value. From my code, I want to check if this value is 1. I have tried this code, inspired by the Unity example, but it looks ...
0
votes
1answer
27 views

Networking - assigning IDs to entities

Maybe I'm asking dumb question, but this problems bothers me... So I have my networked game in Unity (client), and server written in C# (without Unity). I Use ENet library for networking. Most of ...
1
vote
0answers
22 views

Destroying a networked projectile and creating a client side visual for all clients in Unity?

I'm making a shooter in Unity with UNET, and of course I handle projectile (like arrows) collision on the server. The arrows are Networked rigidbodies with NetworkBehaviours, and I would like to ...
0
votes
0answers
28 views

Unity network player synchronization issues with HingeJoint(s)

I have a vehicle with custom wheels which are connected to it by the HingeJoint components. Everything works perfectly when using this car in single-player mode. Wheels are actually as ...
1
vote
1answer
391 views

Peer-to-peer Multiplayer Game [closed]

I built a casual game where the user answer the right word in random question. Now I want to make this game multiplayer (4 players) working on smartphones and tablets (Androird & iOS) where all ...
1
vote
0answers
38 views

Simple networking, now that UNet is deprecated [duplicate]

I'm prototyping a two-player typing game in Unity. I don't have any experience making multiplayer games, so I'm not sure how to best approach the netcode. For this game all I think I really need is ...
0
votes
0answers
22 views

Networking and Timing issue

I have been trying to use the low-level API for UNET and the focus of this problem is this: ...
0
votes
0answers
29 views

How to create Simple Click multiplayer test Game with photon

I am trying to create a simple multiplayer test sample with unity and photon but unable to do so. I am watching the tutorial and reading for 2 days. Now I know how to connect the player to a server ...
0
votes
0answers
24 views

Unity: How do I fix the players model rotation in a NetworkManager to spawn properly?

How do I fix the players model rotation in a NetworkManager to spawn properly? I created a game with the NetworkManager code. Player Model is a cone I made and imported. all works fine but when the ...
0
votes
0answers
15 views

Unity5 multiplayer healthtag update issues

I followed some tutorials about unitys UNET. I have setup a offline and online scene and can spawn player prefabs. I use "Command" and "ClientRpc" calls to update and sync some variables. For example ...
0
votes
1answer
52 views

SerialPort() data reading slowing down Unity

I am sending a few data from Arduino Uno to Unity using serial Port, baud rate is 115200. Still Unity is response time is pretty poor. At first it takes fraction ...
0
votes
0answers
160 views

Spawned Network Object with rigidbody moves at different velocity/angle/pos on the clients/host - Unity Unet Mirror

I am using Mirror API with Unity 2019 to make a basic multiplayer game. The game is a simple ice hockey style with cylinder shaped players and a cylinder puck. The players are spawned by Network ...
0
votes
1answer
747 views

Unity Networked gaming 2019… What happened to NetworkBehaviour, OnServerStart() etc

After a long break, I am now trying to learn some basics in networked gaming in Unity. I've installed the latest beta client (because I want to ultimately make a network multiplayer game but it will ...
0
votes
0answers
22 views

Multiplayer game- Client Shooting backwards

Making a multiplayer game. The Host shoots properly but the other players would only shoot backwards. Shooting script: ...
3
votes
1answer
202 views

Unity3d UnityWebRequest EscapeURL standard does not match Swift url encoding. How to decode it?

How should I decode escaped URL by unity in Swift? I am developing a game with Unity3d. Something MMORPG. With server implemented by me in Swift under ...
0
votes
1answer
24 views

Synchronized non-local CharacterController's velocity is stuck at the last movement in Unity3D

I have CharacterControllers as players in my multiplayer scene, and they got NetworkTransforms attached, with ...
0
votes
0answers
21 views

Unity MatchMaker not finding rooms on different computer

I followed tutorial about Multiplayer FPS by Unity. When I used MatchMaker on the same computer the game was able to find the Room. But when I used MatchMaking from a different computer it didn't work....
0
votes
0answers
139 views

Unity - Bullet spawns in wrong position in client

I am making a multiplayer game with prefab shooting, but unfortunately the prefab sometimes spawns in the wrong position when I shoot from a client. The bullet ...
0
votes
2answers
58 views

Unity - Instantiate GameObject from client on Network

I am building a game where a weapon shoots prefab bullets. I am trying to make this a multiplayer game, so the bullets need to be spawned into the Network. What ...
0
votes
0answers
190 views

Multiplayer Card Game using Photon Unity Networking

I'm making a card game using photon and an important issue i am facing is getting reference of other player objects that are instantiated on the network.The Card game allows players to swap cards with ...
0
votes
0answers
14 views

Custom spawn handler for Object Pooling

I've been working on creating object Networked Object pooling so I came across Unity's Manual Custom Spawn Function, and it worked, but the problem is that all clients are using the same pool. What I ...
0
votes
0answers
43 views

Network Message Registering message handler Problem

I have a confusion about when and where to use NetworkServer.RegisterHandler() and ...
0
votes
1answer
29 views

Use of NetworkHash128 assetId in Custom Spawn Handler

I was learning Custom spawn handler on Unity Manual. It says before spawning we need to Register Spawn handler using ...
1
vote
0answers
40 views

How to implement a network proximity checker in Unity using LLAPI?

I'm trying to implement a network proximity checker using my own functions in Unity, using LLAPI. How can I implemnet a network proximity checker, with similar functionalities than the ones in the ...
3
votes
0answers
102 views

Object pooling in Multiplayer Game. Physics not synchronizing well

I implemented object pooling for my multiplayer project. Following Unity Manual I used custom spawn handler for shooting bullets. Bullets game object has rigidbody so selected Sync Rigibody 3D in ...
0
votes
1answer
131 views

How to give and remove authority of an object between multiple clients (Or how to let the client controller push a rigidbody)

I'm doing a cooperation FPS game in which players can push big rigidbody cubes with their rigidbody characters (the one from the standard assets). The problem is that the player hosting the game has ...
0
votes
1answer
68 views

Difference between Unity's [Command] and [Server]

[Command] and [Server] functions both run on the server and can also be called by a local player but what is the difference between them?
1
vote
0answers
21 views

Share content FROM Facebook, not to it

Regarding Unity 2018.x: The Facebook SDK provides a way to get log-in information from a user's FB account, and allows information or an image from an app to be shared TO Facebook. Is it possible to ...
0
votes
1answer
80 views

Implementing online connectivity and multiplayer/PVP for a newbie

Background I'm a noob programmer looking to create a simple turn based mobile game as a side project. I've pretty much got the game logic down and am left with implementing the online multiplayer/PVP ...
2
votes
1answer
231 views

Enter in a match that is already started

In my Unity mobile game, I need multiplayer online functionalities. All the players should be visible in the world at any given time (of course, with some filtering), and a player should be able to ...
0
votes
2answers
430 views

Getting ip address of connected network

I have two scripts, a server script and a client script. I built two parts of the app, one with the client script and another one with the server script. I put both apps on devices, connected two ...
3
votes
1answer
313 views

How to store and retrieve user data in a multiplayer game

I am building a multiplayer game with a team and each player will have a multiplayer rank, a matchmaking rating (MMR), a username, and possibly a picture, a description etc. We are planning on ...
0
votes
1answer
84 views

How Client send info to Host in Unity Multiplayer

I want to send player name and other details from client to host device. I have setup game for maximum two players connection. Here is the code that I have tried multiple times with different changes:...
1
vote
1answer
304 views

problem using OnStartServer() for unity multiplayer networked game

UPDATE: i am still scratching my head over this. The way i see it, the Awake() function is only invoked when I load it in the Editor, but if I put the prefab Loading line into OnStartServer() it just ...
1
vote
0answers
33 views

I wanted to create a simple mobile online game for me and my mates. How should I handle the networking?

I've made a few simple games and one multiplayer game where you connect through LAN but for this one I wanted to learn something new. I have the game concept working on my computer, it's just waiting ...
1
vote
0answers
80 views

Does Unity's Unet LLAPI compress data?

Does the NetworkTransport compress and decompress the data sent through the network?
4
votes
0answers
204 views

Networking and physics

Context I have been implementing my own networking for a third person multiplayer game, but controls and physics will be ala old school FPSs. I'm using Unity's transport layer, which allows me to ...
0
votes
1answer
47 views

Message Passing b/w “LAN Server Only” and “LAN Client” on Different Scenes in Unity

I want to pass message back and forth on client and server which are on different scenes, how can I do that in Unity?** Following is my Scenario:- I have 5 scenes- BaseScene (2) OfflineScene (3) ...
0
votes
0answers
133 views

What's wrong in switching Script - Unity Multiplayer

I'm trying to switch between weapons but when I want to display another screen "some example" in client I don't see any change! This screenshot shows what I mean. [1] : https://imgur.com/uEUOFhC "...
0
votes
1answer
370 views

Unity UNET, problems spawning and then destroying that instantiated prefab

I am very new to networking, and have ran into an issue, read below. I have multiplayer system setup, where players can spawn, they can pick up weapons and drop them, there is an object representing ...
1
vote
1answer
671 views

Weapon Switching - Unity 3d

when I switch between weapons by Number [1 2 3 4] the weapon don't switch between them but the variable " selected weapon value changed" anyone help me, this my Code and screenshots! ...
0
votes
1answer
108 views

How can I send commands to only certain clients?

I am building a multiplayer game server with Unity. In the game there are players moving around the map. Now, because this map is quite large compared to the number of players, I was thinking to have ...
0
votes
0answers
63 views

Unity Photon multiplayer :: check distance between two players

How to get distance between two player in a photon multiplayer game. Condition is both the player is moving. I have tried something like this, in my player control script: ...
1
vote
1answer
109 views

How to release a new level without having to publish a new version

What can I do to extend the gameplay. So if I know that I will update the game with new levels and dont want to publish a new version every time I have a new level. How can I handle this. Ex: I have ...
1
vote
0answers
117 views

How to transmit data structures larger than the allowed packet size?

The player avatars in my current project are rather complex and can be configured in a variety of ways. Configurations can be saved and switched between during the game, similar to e.g. an RPG where ...
1
vote
0answers
165 views

Unity Game with Voice Chat

Have been working on a Poker game, it is network based and instead of launching game instance on server. I have managed everything via www class and on server created PHP API. Now PHP is taking care ...