Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Displaying player names above head

$
0
0
So I am a bit stuck here and am still very new to Unet networking.

Here is my current code:
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.Networking;
  4. using UnityEngine.UI;
  5.  
  6. public class Player_ID_HUD : NetworkBehaviour {
  7.  
  8.     [SyncVar]
  9.     public string playerUniqueIdentity;
  10.     public NetworkInstanceId playerNetID;
  11.     public Transform myTransform;
  12.  
  13.     public override void OnStartLocalPlayer()
  14.     {
  15.         GetNetidentity();
  16.         SetIdentity();
  17.     }...
Displaying player names above head

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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