Back to API Reference
Class
TextAssetDocumentSource
sealed
Inherits:DocumentSource
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 TextFileEncoding Encoding{ get; set }public override IDisposable Load()