Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Stress testing the Beta UI - Text

$
0
0
OK I'm testing the performance of the new beta UI and I have managed to crash it with 170 dynamic text labels with shadows (see code below).

Code (CSharp):
  1. public class TextTest : MonoBehaviour {
  2.  
  3.     public GameObject txt;
  4.     public Transform panel;
  5.  
  6.     public Text counter;
  7.  
  8.     List<Text> textList;
  9.  
  10.     void Start () {
  11.         textList = new List<Text>();
  12.     }
  13.    
  14.    
  15.     void Update () {
  16.         GameObject goT = Instantiate(txt) as GameObject;
  17.         goT.transform.parent = panel;...
Stress testing the Beta UI - Text

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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