How to Read Text Files Into Unity

Screen Shot 2016-04-02 at 8.28.36 PM

One technique for getting text files into your Unity project is to use the TextAsset class. This lets you treat the entire text file as a string, which you can operate on using any of the String class methods (the .Net methods work for any language Unity supports).

This example splits a CSV text file into strings and prints them: Unity-text-file-import.zip

by 6 years ago


Warning: sizeof(): Parameter must be an array or an object that implements Countable in /homepages/37/d93876897/htdocs/chris-reilly_dotorg_WP-2013/wordpress/wp-content/themes/chris-custom/content-blog.php on line 56

RESPOND

Your email address will not be published. Required fields are marked *