A
A
Andrey2021-12-29 15:00:24
Android
Andrey, 2021-12-29 15:00:24

How to access file from C# code on android Unity app?

Hello!
I'm making an android app with Unity. In the C# code, there is a read of an external file that was stored in Assets/Data. Everything was easy until I built and opened the project on an android phone. Those lines in the application that should have been read from the file are empty.
I have been looking for an answer for several days, but, most likely due to the fact that I am too green in my yunk, I cannot understand anything.
How can I make it so that the apk file already had the txt files I needed, which I could read in the code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2021-12-29
@andreyfilippov3001

https://docs.unity3d.com/Manual/StreamingAssets.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question