Back to API Reference
Class

TextAssetDocumentSource

sealed

A TextAsset's bytes as the document. Unity holds the whole asset in memory, so this suits documents up to a few megabytes; larger files belong in streaming assets behind a FileDocumentSource.

public TextAsset Asset{ get; set }
public TextFileEncoding Encoding{ get; set }
public bool IsEmpty{ get }
public override IDisposable Load()