TextAsset Constructor

Switch to Manual
public TextAsset(string text);

Parameters

text The text contents for the TextAsset.

Description

Create a new TextAsset with the specified text contents.

This constructor creates a TextAsset, which is not the same as a plain text file. When saved to disk using the AssetDatabase class, the TextAsset should be saved with the .asset extension.

Did you find this page useful? Please give it a rating: