Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Canvas Does Not Update Text Until Closed Out Of Game

$
0
0
I have a text component that is changed in my script, however the change does not appear on the canvas until after I stop running the game. How do I get the change to appear at runtime?

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using UnityEngine.Networking;
  6. using System;
  7. using UnityEngine.Networking.NetworkSystem;
  8. using UnityEngine.UI;
  9. public class Player : NetworkBehaviour {
  10.     public Text turn_count_drop; //assigned in...
Canvas Does Not Update Text Until Closed Out Of Game

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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