Questions tagged [unity3d-unet]

UNET is the native Unity3D network system. It is the short form of unity networking. Use this tag to ask questions related to Unity3d networking.

UNET is the new native Unity3D network system (since Unity 5). It is the short form of unity networking.

http://docs.unity3d.com/Manual/UNetOverview.html

This tag covers :

  • High level scripting API, LLAPI, and all underlying concepts
  • GameDev network programming algorithms and concepts applied to Unity scripting.
  • Old (legacy) networking system.

Related tags

241 questions
1
vote
1 answer

Found no receiver for incoming [xxxx] on playerPrefab

I have a problem with Unity Unet. I am trying to spawn a player on the map. The player appears on the server and on the client, but I have the following error : Found no receiver for incoming [xxxxxx] on playerPrefab, the server and the client…
iAmoric
  • 1,787
  • 3
  • 31
  • 64
1
vote
1 answer

Unity2D, can't sync my sprite across all clients (multiplayer)

I'm trying to learn about Unet, but I'm having trouble getting the hang of it, despite following a few tutorials. I am making a 2d game, and what I'm currently stuck at, is updating the way my characters sprite is turning (left or right). My…
1
vote
0 answers

Command is not executing when local player is not host

I am getting very strange behavior, if my player instantiate as host (Server+Player) then my command function runs perfectly and certain object become instantiate but if I join the host then my Command doesn't execute on my local player but runs on…
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
1
vote
1 answer

Unity 5.3+ Networking Load Next Level

In a networked game project following on from the Unity Multiplayer Tutorial, how is one supposed to go about changing scene to a new level/map while preserving camera/player GO/health etc. in one overarching master scene. (e.g. Gameplay.unity with…
Rogod
  • 188
  • 1
  • 13
1
vote
0 answers

UNET ID Unity 5.4

I am working on a Unity Multiplayer Networking App. I've gotten to that point where I can successfully run a client and host on the same machine. However, when I run the host on one machine and have the client on another machine try and connect to…
user3776643
  • 43
  • 2
  • 5
1
vote
1 answer

Unity3d HLAPI, Unet, network aware spawining

Hello I am trying to create my first game in unity which I wanna be network aware but I encoured a problem with network prefabs spawning. Here's my code: using UnityEngine; using System.Collections; using UnityEngine.Networking; public class…
1
vote
1 answer

Instantiate two different players objects on network

I am using two different objects for player in network multiplayer game. Two different kinds of Gameobject will be instantiated by unity network Manager but the problem is there is only single property of playerprefab. How can i set two different…
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
1
vote
1 answer

How to call [Command] on Client in UNet(Unity)

I'm working on a Unity 2D multiplayer game using UNet. My problem is that the Client cant send the [Command] to the server. Im debugging on UnityEditor and a built apk for my android phone. First I used UnityEditor as Host and the phone as Client,…
Daniel
  • 64
  • 2
  • 14
1
vote
3 answers

Unity 5.4 UNetWeaver error: ResolveMethod failed

I am having this error even in empty projects. i am using Unity 5.4.03 UNetWeaver error: ResolveMethod failed NetworkBehaviour::SendTargetRPCInternal…
khawar
  • 168
  • 1
  • 1
  • 10
1
vote
1 answer

How to get actual connections count for NetworkServer in Unity

I'm going to develop a simple multiplayer for my Unity game project. I've started from HLAPI, but it appears to be vvvery slow on spawning and syncing states, so I've decided to investigate Unity Internet services instead, starting from the basic…
Vyacheslav Orlovsky
  • 329
  • 1
  • 6
  • 15
1
vote
1 answer

C# - How to synchronize a list of "player stats" instances? (Unity)

It's probably o noob question, but important to me. Also I think it's an interesting topic. I'm using C# with new Unity Multiplayer. You can find tutorial here: https://unity3d.com/learn/tutorials/topics/multiplayer-networking - I'm working on…
A guy
  • 71
  • 11
1
vote
2 answers

How to count score on all players from non player object

I've been trying to make a rocket league type game with unity 5.4 and in c#. I've got everything with the players working and the playarea. The players are spawned by the network spawner and a ball is spawned by a ball spawner, like the enemyspawner…
Morti
  • 175
  • 1
  • 7
1
vote
1 answer

Unity [UNET] Sync non-player object transform

I have a question regarding the UNET system. There are some objects in the scene that can be picked. I want to synchronize transform that object when a player picks it up. The object has a NetworkIdentity component with LocalPlayerAuthority checked.…
1
vote
2 answers

Sync non-player object transform that is changed from another interactable object in Unet/Unity 5?

I have a cube in my game that lerps between its initial state and a larger state while looking at another object. This works fine in single player, but when I bring it over to multiplayer I can't find the right combination of options to get it to…
1
vote
1 answer

Unity3D Client cannot spawn prefab

I am making shooting game over network and it works very well with below source. player.cs void Update(){ if (!isLocalPlayer) { return; } if (Input.GetMouseButton(0)) { CmdDefaultAttack(_skillDefault); …
Daniel
  • 606
  • 7
  • 23