Questions tagged [unity-networking]

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

Unity 5.1 has a new and improved Networking system with more flexibility and power than the networking system provided in earlier versions of Unity. It has a lower level NetworkTransport class which is a thin layer above basic sockets and then higher level components which add more useful multiplayer features.

Useful Links

170 questions
13
votes
2 answers

Additive scene loading in Unity Networking-UNet

Short Description: I am loading an Additive Scene in my Main scene, its loading fine but Additive scene's GameObject (that contain Network Identity Component) are becoming disable. Details: I am loading an additive scene through this code so that an…
8
votes
1 answer

Built-in Multiplayer in Unity3D without a Server?

I heard Unity3D has a Built-In Multiplayer functionality and it can provide the service without a server. But I couldn't find any information about it, all the turtorials I found were just about working with Photon(PUD) or Google Services. I know…
Jenix
  • 2,996
  • 2
  • 29
  • 58
6
votes
4 answers

How do I sync non-player GameObject properties in UNet/Unity5?

I'm working on and learning some basics of Unity 5, UNET, and networking. I made a simple 3D game where you go around and change the colors of objects. But I want to make it multiplayer now, and I am having lots of trouble figuring out how to send…
Michael S
  • 726
  • 1
  • 10
  • 23
6
votes
3 answers

Unity 5.1 Networking - Spawn an object as a child for the host and all clients

I have a player object who can equip multiple weapons. When a weapon is equipped, its transform's parent is set to its hand. I have messed around with this for some time and cannot get this to work for both the host and the client. Right now I am…
5
votes
4 answers

UNET Client Cant Send Server Commands, Host Can

So as the title suggests, I'm having a problem where commands being sent by the client are not triggered. The basic functionality I'm trying to get working is that when an enemy is in front of the player and I click, that player will be momentarily…
5
votes
2 answers

Streaming WebCamTexture with new Unity 5.1 Transport Layer API

As the question states, I have been trying to stream a WebCamTexture from a client with a webcam to a server. Both sides (client and server) are in Unity. Later, the client will be deployed to Android and the server will be a desktop application.…
4
votes
1 answer

Unity3D HLAPI networking single player overhead

Using the Unity3D engine's high-level networking API (HLAPI) seems to be an all-or-nothing approach. For any game objects expected to be used in multiplayer, (most) behaviors need to be implemented as NetworkBehaviours, and Network components are…
Eric Hughes
  • 831
  • 6
  • 19
4
votes
2 answers

How to use multiple player prefabs for Unity's new UNET?

Has anyone got multiple player prefabs working (eg different character classes with different prefabs) on the new Unity UNET Networking?
Justin Hirsch
  • 319
  • 1
  • 3
  • 8
3
votes
2 answers

UNet randomly disconnects

I've been getting constant UNet dropouts for a basic networked scene (two player transforms and the occasional RPC). The connection drops due to a timeout. Connections reliably drop within 5 minutes, and mostly within 30 seconds. I've read online…
Chris Nolet
  • 8,714
  • 7
  • 67
  • 92
3
votes
0 answers

Unity 5.5.0f3 - Updating an object with ClientRpc throws "Found no behaviour for Rpc call..."

I'm working on a teammatch game. Each team has it's own spawn and the objective is to destroy the other team's spawn. The spawns are setup in the network in form of 3 objects - an actual spawn (referenced later on to as the physical spawn), visible…
Hornster
  • 31
  • 2
3
votes
0 answers

Unity Networking: how to sync animations on child object?

I'm making a multiplayer but I got stuck at syncing animations. My current player hierarchy is following: The problem is that Marine object uses IK to aim up/down which means that I use OnAnimatorIK function. In order to use OnAnimatorIK, the…
Jonathan
  • 325
  • 2
  • 3
  • 24
3
votes
2 answers

UNet: Failed to spawn server object (NOT using NetworkManager)

I'm playing around with Unity 5's Networking HLAPI. I don't want to use the NetworkManager, because I don't want to pay for Unity's Multiplayer services (Matchmaker and Relay servers). I'm trying to spawn a Player on the Client when the Client…
jenkins
  • 626
  • 1
  • 7
  • 19
3
votes
0 answers

Networking rotation sync

My Unity version is 5.2.3f1, I m trying to sync the rotation of a child gameobject, in local works perfectly fine but it doesnt show up in other clients. I tried everything I could find and nothing. The reason of this is to rotate a FPS body, so, I…
3
votes
1 answer

Unity Network Material color change does not work

I have a player object that has: Network Identity and Network Transform. Also an object that has a NetworkManager. When I connect 2 PCs. I can see both players movements. That is fine. But There are two balls in my game. One Green and one Red. Here…
3
votes
1 answer

SyncVar without NetworkServer.Spawn

I have a somewhat complex tree of objects that is generated and configured at runtime. Since the information required to do this is available to both the server and the client, I would like to have both sides generate the objects independently and…
Mispy
  • 879
  • 8
  • 21
1
2 3
11 12