Advertisement
dantepw

Unity3D C# html tags in UI text

Jun 26th, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using System.Collections;
  4.  
  5. public class Timer : MonoBehaviour {
  6.  
  7.     public Text txt;
  8.  
  9.     void Start()
  10.     {
  11.         txt.text = "Hello, I am <b>Diego</b>";
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement