Loading a *.obj file from Resources as TXT

Hello there,

i am trying to load multiple *.obj files in my unity project as text.
I have information in the obj files that i need to access.
But i just cant make it work.

I have tried somethng like this:
var tmp_txt = Resources.Load(objFileName) as TextAsset;
but it won´t work.

Can you please show me how to do this?

thnaks!
kai

Unity will treat it as a model. One way, just append “.txt” to the file name. Another, put the file in StreamingAssets and load from there.

He there,

thanks for the information!