Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

TextAsset.text

Cambiar al Manual
public string text;

Descripción

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

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public TextAsset asset; void Start() { print(asset.text); } }