using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; using UnityEngine.UI; public class TextReaderController : MonoBehaviour { public TextAsset note; public Text uiText; // Use this for initialization void Start () { note = new TextAsset(); } // Update is called once per frame void Update () { if (this.GetComponent().isActiveAndEnabled) { uiText.text = note.text; } } }