unity3d-unet

UWP and HoloLens Unet [Command]

僤鯓⒐⒋嵵緔 提交于 2019-12-11 05:47:30
问题 I have two different Unity projects, one is a HoloLens application and the other is the desktop application. My goal is to manipulate an object in the HoloLens application through the desktop application. At the moment I have Unet working when the HoloLens is the host and the desktop acting as the client. Manipulating through the HoloLens and transferring that to the desktop application works, but it doesn't vice versa. I am unable to connect to the desktop application when it serves as the

In Unity3D networking, how to have “more than one Player”?

試著忘記壹切 提交于 2019-12-02 06:48:38
问题 I have a simple LAN topology with a server and say three clients, -client server -client -client (they are not literally "players") The three clients communicate to the server various information. Of course just using [Command] calls. However they are "all the same". The same few calls are made. (The server knows which one has sent the info, from the ID.) At first, I simply spawned a "player" object, with a script on it with the various [Command] calls. each client has an abstract player

In Unity3D networking, how to have “more than one Player”?

拥有回忆 提交于 2019-12-02 05:10:57
I have a simple LAN topology with a server and say three clients, -client server -client -client (they are not literally "players") The three clients communicate to the server various information. Of course just using [Command] calls. However they are "all the same". The same few calls are made. (The server knows which one has sent the info, from the ID.) At first, I simply spawned a "player" object, with a script on it with the various [Command] calls. each client has an abstract player object it is spawned by the NetworkManager in the usual way However. It turns out, the server only

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

岁酱吖の 提交于 2019-11-29 08:44:37
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 : MonoBehaviour { //get local ip address public string getIP() { string IP = ""; IP = Network.player.ipAddress; return IP; } //get all ip addresses in local network public List<string> getIPArray() { List<string> listIP = new List<string>(); return listIP; } } There are two way to do this: 1 .UDP It's a long process but can be done with UDP. 1 .First thing to

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

笑着哭i 提交于 2019-11-28 02:17:49
问题 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 : MonoBehaviour { //get local ip address public string getIP() { string IP = ""; IP = Network.player.ipAddress; return IP; } //get all ip addresses in local network public List<string> getIPArray() { List<string> listIP = new List<string>(); return listIP; } }