TextAsset.text 文本
var text : string
Description描述
The text contents of the .txt file as a string. (Read Only)
.txt文件的文本内容作为字符串。(只读)
- C# 
- JavaScript 
using UnityEngine;using System.Collections;public class example : MonoBehaviour {public TextAsset asset;void Start() {print(asset.text);}}var asset : TextAsset;function Start () {print(asset.text);} 
                                     
                                     
                                    