TextAsset.text Manual     Reference     Scripting  
Scripting > Runtime Classes > TextAsset
TextAsset.text

var text : string

Description

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

var asset : TextAsset;
function Start () {
print(asset.text);
}