I'm trying to load text from a .txt file into a TextAsset
variable. The file is in the assets folder under Texts/
. My problem is that bindata
is returned as null.
string instructions;
void Start ()
{
//LOAD TEXT ASSETS
TextAsset bindata = Resources.Load ("Texts/Instructions") as TextAsset;
instructions = bindata.text;
}