Read any Resource file as string (also non .txt files)
With Resources.Load<TextAsset>(pathToFile)
you can load strings from .json and .txt files - I know. But how can I import any resource file as a string?
In my case I have a **.dae file*, that I have to parse as an XML Document. I tried to import it as a TextAsset, but that did not work. Copying the file and changing the extension to .txt solves the issue.
Is there a way, to import "non-.txt" files as string in Unity? (without using the System.IO namespace)
Comment
Your answer
Follow this Question
Related Questions
how to change asset set to script ? 0 Answers
In-game asset creation resolution 1 Answer
Resources.UnloadAssets doen't deallocate memory in build 0 Answers
How to load prefabs with path? 0 Answers
Resources/unity_builtin_extra not found 0 Answers