How to change the font to an imported one without guitest?
I tried something like this using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { public Font Guifont; public int fontsize; GUIStyle customButtonStyle; public void OnGUI(){ GUI.backgroundColor = Color.clear; // guiText.font = Guifont; if (GUI.Button (new Rect (Screen.width / 2 - 50, Screen.height / 2-100, 100, 50), "<font face=Guifont><color=grey><size=10>Start</size></color></font>")) Application.LoadLevel(1); } }
But it displays: ce=Guifont>Sta
See Redirect to... title of new-page for the tags that are supported. (Hint: font is not one of them.)