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)

JavaScript
var asset : TextAsset;

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