Version: 2019.1 (switch to 2018.3 or 2017.4)
LanguageEnglish
  • C#

TextAsset.text

Switch to Manual
public string text;

Description

The text contents of the .txt file as a string. (Read Only)

using UnityEngine;

public class Example : MonoBehaviour { TextAsset asset;

void Start() { print(asset.text); } }

Did you find this page useful? Please give it a rating: