Как увеличить размер текста в unity 2d?
Я написал скрипт для диалога(кстати можете скачать;3)но шрифт в диалоге слишком маленький, я не могу увеличить.Можете помочь! Сам скрипт:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Dialogue : MonoBehaviour
{
public DialogueNode[] node;
public int _currentNode;
public bool ShowDialogue = true;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void OnGUI()
{
if(ShowDialogue==true)
{
GUI.Box(new Rect(Screen.width/2 - 600, Screen.height - 600, 1200, 500), "");
GUI.Label(new Rect(Screen.width/2 - 500, Screen.height - 560, 1000, 180), node[_currentNode].NpcText);
for(int i = 0; i<node[_currentNode].PlayerAnswer.Length; i++){
if (GUI.Button(new Rect(Screen.width/2-500, Screen.height - 400+50*i,1000,50),node[_currentNode].PlayerAnswer[i].Text)) {
if(node[_currentNode].PlayerAnswer [i].SpeakEnd){
ShowDialogue = false;
}
_currentNode = node[_currentNode].PlayerAnswer [i].ToNode;
}
}
}}
}
[System.Serializable]
public class DialogueNode
{
public string NpcText;
public Answer[] PlayerAnswer;
}
[System.Serializable]
public class Answer
{
public string Text;
public int ToNode;
public bool SpeakEnd;
}