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); } }
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答