The text contents of the file as a string. (Read Only)
Encodings are detected and interpreted automatically. Supported encodings are:
To use a specific encoding to decode a file, use TextAsset.bytes and C# encoding tools.
using UnityEngine;
public class Example : MonoBehaviour { TextAsset asset;
void Start() { print(asset.text); } }