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
1 answer
19 views

Unity Multiplayer Sync Bools

I have a little problem with syncing booleans on my networking game. I use the Mirror-Package for networking and use KCP for transport. When the players basicly collide each other (using a sphere ...
user avatar
0 votes
1 answer
33 views

Unity MLAPI Instance server

I am currently developing a multiplayer game with unity using MLAPI sdk. Right now i have an API Gateway for everything that is not directly gameplay and theirs also Zone servers AKA Gameplay servers. ...
user avatar
0 votes
0 answers
41 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 ...
user avatar
  • 175
0 votes
0 answers
15 views

How to create game server using Photon like SFS 2X

In SFS2X there is a user dashboard to upload the JAR file. The JAR file contains all the game logic. From Unity, I send a request to connect with the game server to play the game. How to do the same ...
user avatar
0 votes
1 answer
52 views

How do I track 2 lights in real time with a camera and send it to a phone in Unity?

I am trying to track 2 lights and send that data to Unity for VR controller tracking. How do I get started? Do I make an app that communicates with Wifi or something? And how do I detect the lights? ...
user avatar
  • 1
1 vote
0 answers
120 views

How to Share Screen in Unity

I am trying to create a virtual workspace where one user can share his computer screen (and show what other Desktop applications are running) onto an in-game screen in unity. By researching I did not ...
user avatar
0 votes
1 answer
60 views

How to save user progress and report on the server?

I'm developing a game that consists of many mini-games. We want the user username to be recorded and saved. Also, each time the user plays one of the mini-games, some reports for that specific mini-...
user avatar
2 votes
2 answers
103 views

Prevent multiple input packets to authoritative server

I'm working on a simple game with an authoritative server. The player can move in 4 directions on a 2D board. The game samples input at 30hz and sends it to the server. The server also runs at 30hz. ...
user avatar
  • 21
0 votes
0 answers
169 views

Download Progress bar from Firebase Storage

Im trying to make a progress bar based on downloaded images from Firebase storage, now firebase does provide a snipper which works per image ...
user avatar
0 votes
1 answer
67 views

Parse Data on runtime into JSON

I have been trying to work out a subscription form for my game and thanks to you guys here, I came to a solution which works but still needs some changes. The idea is to have an input field in the ...
user avatar
0 votes
1 answer
960 views

400 bad request UnityWebRequest

hey everyone any ideas why im getting a 400 error? im trying to post a json to a subscription list. doing that through postman works just fine! ...
user avatar
-1 votes
1 answer
43 views

Unity mailchimp / Klaviyo subscription form

Hey everyone so i want to add a subscription form on my game. so far i can send data to a database and display them on a leaderboard, i found a similar question here but its a bit outdated. Ideally i ...
user avatar
0 votes
0 answers
159 views

Mirror Networking; How to Pass/Sync c# actions?

Since you can not pass actions as parameters to commands and rpc calls, how would you sync actions ? My main goal is to find an easy and generic way for objects to easily do actions from their local ...
user avatar
0 votes
2 answers
156 views

If i make a game in Unity where a player can host their own servers, will it still cost me more money?

I know that with Unity's networking system, you will have to pay Unity if you have more than X players on your servers at the same time. I believe this is because that Unity is hosting the servers, ...
user avatar
  • 470
1 vote
1 answer
484 views

Mirror/Unet, RegisterSpawnHandler throws invalid asset Id error because assetId is 0 for dynamically loaded assetbundles

Its weird how documentation literally states that For more advanced uses, such as object pools or dynamically created Assets, you can use the ClientScene.RegisterSpawnHandler method But seems like ...
user avatar
  • 541
0 votes
1 answer
2k views

Difference between [P2P] Relay Servers and Dedicated Game Servers?

I came across this unity Unity conference video on buillding multiplayer games https://www.youtube.com/watch?v=CuQF7hXlVyk Form, this image we can see there are 3 P2P methods and 1 Direct client ...
user avatar
2 votes
0 answers
203 views

How does a server receive every player input with a server-authoritative structure?

I've been having a lot of trouble understanding networking in fast-paced games. A server has a fixed tickrate, and the server receives input from clients at a fixed rate as well. Let's assume that a ...
user avatar
0 votes
0 answers
1k views

"The server isn't currently responsive" error when trying to log into Unity Hub

I had reinstalled Unity and Unity Hub to fix package manager error, and when I try to log into Unity Hub after it installs, i get the following error "The server is currently unresponsive" I tried ...
user avatar
0 votes
0 answers
827 views

Unity Mirror Network Transform not working

I am having an issue with Mirror's network transform component in unity. Players cannot see each other move, and in the inspector window only the host's player moves (this is not updated to the ...
user avatar
  • 1
0 votes
1 answer
61 views

Can't join to room through Unity's Matchmaking system on the Internet

It works perfectly when I try to connect locally from my editor to my running build. But after I start the server on my Android, and try to connect to it from my editor, it time outs: As you can see,...
user avatar
  • 626
0 votes
1 answer
56 views

How to make it so that players can only see one specific player but not the others?

I'm developing an educational game whose main mechanics are not multiplayer-oriented. However, I would like to add a feature that allows the teacher to enter the game and all students can see him, but ...
user avatar
0 votes
0 answers
82 views

WebSocketSharp For Unity

I have integrated WebSocketSharp with Unity 2018.4.14f1 and it works well with Android and IOS. I wanted to know that most of the other socket.io plugins for unity have a wrapper of Class Packet over ...
user avatar
0 votes
0 answers
315 views

Cost of Unity Local Multiplayer VS Unity Online Multiplayer

I know that making multiplayer games in Unity costs money because of the servers that are used in connecting the players. So basically its free upto 20 CCU and then it increases as per the CCU. Its ...
user avatar
2 votes
1 answer
6k 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 ...
user avatar
1 vote
1 answer
4k 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. ...
user avatar
  • 11
1 vote
2 answers
825 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 ...
user avatar
0 votes
1 answer
106 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 ...
user avatar
  • 3
1 vote
0 answers
86 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 ...
user avatar
  • 626
0 votes
0 answers
243 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 ...
user avatar
  • 301
1 vote
1 answer
3k 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 ...
user avatar
2 votes
0 answers
262 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 ...
user avatar
0 votes
0 answers
25 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: ...
user avatar
0 votes
0 answers
49 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 ...
user avatar
0 votes
1 answer
101 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
3 votes
1 answer
959 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 ...
user avatar
  • 141
0 votes
1 answer
33 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 ...
user avatar
  • 626
0 votes
0 answers
322 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 ...
user avatar
  • 171
0 votes
2 answers
173 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 ...
user avatar
  • 171
0 votes
0 answers
212 views

Network Message Registering message handler Problem

I have a confusion about when and where to use NetworkServer.RegisterHandler() and ...
user avatar
0 votes
1 answer
51 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 ...
user avatar
1 vote
0 answers
57 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 ...
user avatar
3 votes
0 answers
229 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 ...
user avatar
2 votes
2 answers
5k 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 ...
user avatar
0 votes
1 answer
243 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?
user avatar
1 vote
0 answers
22 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 ...
user avatar
  • 161
0 votes
1 answer
142 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 ...
user avatar
2 votes
1 answer
356 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 ...
user avatar
0 votes
2 answers
661 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 ...
user avatar
3 votes
1 answer
1k 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 ...
user avatar
  • 1,210