Quantcast
Browsing all 16796 articles
Browse latest View live

GameObject.Find not working with OnStartLocalPlayer for LobbyManager?

Hi, When using the LobbyManager, if I put a GameObject.Find in the Override OnStartLocalPlayer, I get an error "Object Reference not set to an instance of an object", even if the object is in the...

View Article


Unet BUG: OnLobbyServerPlayersReady runs on any change in Ready State

I've experienced a strange bug in my code, and in the code of LobbyManager. If you've noticed when pressing join on any client, the server will begin it's countdown instantly, before anyone else can...

View Article


Number of allowed clients is maxConnections -1 in uNet, is it a bug?

When I setup a NetworkServer to have 8 maximum players, I can connect 7 clients to it even if I don't use a local client on the server (i.e. even when I am intending to use a dedicated server and not a...

View Article

UI Networking (UI Only Multiplayer Game) Help please

Hi I have been working on a game similar to Gwent from the Witcher 3. I have been working on this project for educational purposes and I've run into a bit of a dead end when it comes to the networking....

View Article

UNET single player (offline) mode

Hi all, I'm converting my game from single to multi-player mode. I have followed all the basic steps to use UNET: create NetworkManager + HUD change player script from MonoBehaviour to NetworkBehaviour...

View Article


Image may be NSFW.
Clik here to view.

Get Latency and Ping players

Hi guys, I'm having a little bit of a struggle moving over to UNET from the legacy networking solution here In the legacy Unity networking I was able to tell the latency in seconds of each RPC call...

View Article

External Server to handle clients

Hello, I have heard about Unet, the successor to the MasterServer API (correct me if I am wrong). From watching tutorials on YouTube, I have seen that a client, can HOST a game and JOIN a game, which I...

View Article

Oh my, why so complicated

Two weeks ago there was the global game jam and in the spirit of tackling something challenging I decided to include Unity multiplayer into our small game. Long story short: after around a day I gave...

View Article


Transfer client authority?

Is there a way to transfer client authority of an object from player to player? As an example, I want the server to spawn a cube (without rigidbody) - and have two players be able to move it around by...

View Article


Animators conflicting on Respawn

I have 2 Animators on a GameObject. 1 on the root (which controls movement) and another on a Child game object (which controls various other things). I have the Animator on the root connected to my...

View Article

How can i detect that player spawned?

i use custom NetworkManager. is there any method that is called when a player is added to the client? on server there is NetworkManager.OnServerAddPlayer. i need OnClientPlayerAdded method. i do not...

View Article

Bullets that change direction

Hi, I know for simple bullets a NetworkTransform with send rate to zero will suffice but in my game bullets bounce/ricochet so I think there should be a need to tell bullets on other clients to change...

View Article

Difference between [server] and isServer?

Hi, What's the difference between [Server] and isServer? Thanks

View Article


Photon Unity Networking

Photon Unity Networking Get it. No server setup needed - runs in the Photon Cloud. No obligation due to free plan. Download from the Asset Store: http://u3d.as/2ey Overview This package implements...

View Article

Game Player on NetworkLobbyManager not Spawning/Initiating

Hi guys, as you read on the title, Game Player objects are not spawning when the game starts. I have a lobby, when all are ready it goes to game scene, and then no Game Player are spawned. What should...

View Article


Updating MatchMaker Information

Hi all, I'm currently running into an issue with my UNet multiplayer game. I'm making use of the Unity matchmaker for the server browser functionality, but I'm wondering how to update matchmaking...

View Article

WebService WebMethod in Unity "timing out"?

Hello. I am trying to make my Android app communicate with a C# Web Service which does work sometimes. However, it frequently happens that Unity freezes when calling a WebMethod and after a long time...

View Article


Suggestion to UNET devs - Custom spawn handling

I'm trying to use a custom spawn handler to spawn a child object for player prefab. SpawnDelegate() has 2 arguments: position and assetId. Im not using the position, since the object will be spawned...

View Article

Networked object pool example for UNet HLAPI

Attached is an example of networked object pool for UNet. It uses custom spawn handler functions and has object pools on the host and clients. Instances of the specified "Prefab" object are created at...

View Article

BlackJack sample

Attached is a sample project that is a multiplayer black jack card game written using the UNet HLAPI. It uses the Unity UI system, but the user interface is very primitive. It is missing some features,...

View Article
Browsing all 16796 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>