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
14
votes
3 answers

Unity3D. Trying to send command for object without authority

I have a multiplayer turn-based strategy game that needs a game manager, controlling current game state (who's turn it is etc.). This manager should be common for every client, it's state should be synchronized on server. Here's how I'm doing…
PanCotzky
  • 564
  • 2
  • 5
  • 12
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…
11
votes
2 answers

Unity [UNET] Sync non-player object transform not working

I am trying to sync the transform of one non-player gameobject in Unity by using UNET. Basically I have a player that can go against that object and move it, and I want the transform of that object to change in the same way in both the server and…
jaraujo
  • 372
  • 2
  • 10
10
votes
1 answer

Lan Multiplayer Scene Change

I am new to unity and currently trying to make a LAN multiplayer RPG game. FYI, I have followed the official unity lan multiplayer guide and everything went…
NoobProgrammer
  • 191
  • 1
  • 2
  • 11
8
votes
2 answers

Instantiated prefab scale is not displayed correctly on client

I have an explosion represented by a animated prefab. The prefab is instantiated when the user clicks a UI button. When the button is clicked on the client or the host, the prefab is set to localscale of Vector3(0.1,0.1,1) and is displayed correctly…
tintyethan
  • 1,772
  • 3
  • 20
  • 44
7
votes
1 answer

VR Player controller is not showing to character controller

I am developing a Multiplayer game where a Normal Character Controller User and VR User can participate. So there are two modes of the games through a user can join, Normal Mode (Character Controller) VR Mode (HTC VR headset) I am able to manage…
4
votes
1 answer

Synchronizing complex GameObjects in Unity Networking - UNET

I'm working on first person game where player can build complex objects. Structure example: Train - Wagon - Table - Chair - Chest (stores items) - Workshop (manufactures items, has build queue) Player is able to create trains, add wagons,…
4
votes
1 answer

Fluent movement with NetworkTransform & NetworkAnimator

My player character moves around the world using the Animator with root motion activated. Basically, the AI system sets the velocities on Animator, which in turn controls the Animation clips that control character motion. As this is a standard…
Thomas Hilbert
  • 3,559
  • 2
  • 13
  • 33
4
votes
1 answer

UNET - Let any player send Commands to the same NetworkIdentity

Unity version: 5.5 Scene example: Light [GameObject with a Light component] LightSwitch - [Contains: BoxCollider|NetworkIdentity|Script inherited from NetworkBehaviour that toggles light on/off when someone clicks over it's…
FrakyDale
  • 647
  • 8
  • 22
3
votes
2 answers

Unity 2018.2 - UNet Matchmaking only works at LAN

I'm trying to implement the UNET Matchmaking system based on a tutorial from Brackeys. I already enabled the multiplayer services in my Unity account and enabled the service. When I try to create a match and find it from another PC in my LAN, it…
Lucas Freitas
  • 1,016
  • 4
  • 16
  • 37
3
votes
1 answer

Instantiate GameObjects over network

I have a piece of code that is supposed to generate a random tile map which it does for the server only. I can't figure out how to get it to sync to the players when they join it.How would I sync the prefabs that are instigated to the joining…
Ethan Baxter
  • 196
  • 2
  • 14
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 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
1 answer

Unity Unet Multiplayer issue with iOS native build

I created my how matchmaking class with unity. It all works fine on pc and am easily able to create a match without no problems. The problems came when I try to create a match for iOS. When I try to create a new match I got this error on…
Max_Power89
  • 1,710
  • 1
  • 21
  • 38
3
votes
1 answer

How to get IP addresses of all devices in local network with Unity UNET in C#?

everyone! I have a lot of devices in one local network. How can I get ip addresses of all these devices? I want to do something like this: using UnityEngine; using System.Collections; using System.Collections.Generic; public class Tools :…
IlyaGutnikov
  • 627
  • 1
  • 7
  • 19
1
2 3
16 17