I scripted this script in c#:
I attached this script to a text object in the scene.
But the string variable doesnt sync.
Can someone...
SyncVar problem
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- using UnityEngine.UI;
- using UnityEngine.Networking;
- public class GetText : NetworkBehaviour {
- [SyncVar]
- public string Live;
- [SerializeField]
- Text abc;
- }
- abc.text = Live;
- }
- }
But the string variable doesnt sync.
Can someone...
SyncVar problem