1using System.Collections;
5 public class Chatbox : MonoBehaviour {
6 [SerializeField]
private UnityEngine.UI.ScrollRect
scrollView =
null;
7 [SerializeField]
private TMPro.TMP_Text
textArea =
null;
11 textArea.text += speaker +
": " + message +
"\n\n";
16 textArea.text += message +
"\n\n";
21 if (gameObject.activeSelf) {
33 scrollView.verticalNormalizedPosition = 0.0f;
UnityEngine.UI.ScrollRect scrollView
IEnumerator ScrollToBottomCoroutine()
void AddMessage(string speaker, string message)
void AddMessage(string message)