- Home /
Mobile File Directory.
So I have been doing quite a bit of research on this an so far all I come up with is links to the Path Class in the Unity Docs. I understand I might have to make the GUI for file directory but were is a good place to really start with Mobile File Directory.
A good example would be: The user is on an android phone and wants to add songs to a specific playlist to play to. How would I create the ability to navigate through the paths?
Answer by rutter · Mar 29, 2012 at 03:43 AM
You'll want to get very familiar with the `Directory`, `File`, and `Path` classes, along with probably a few others in the `System.IO` namespace.
You can list directory contents with functions like Directory.GetDirectories()
and Directory.GetFiles()
. Path
and File
contain lots of goodies for manipulating paths and files, respectively.
More or less, you need a GUI frontend which displays the results of browsing through the file structure, and allows users to do some basic operations (selecting folders and files, at the very least). From there, you call back to your game and make sure it can read and use the file paths that are passed back in.
Bear in mind that on any device, your application may have to handle limited permissions on various files and folders.
Tho I already know most of the info on how to browse I was asking if there is a specific way I need to do it with Unity's Scripting.
In my experience, it'll behave pretty much like any other .NET app, as far as file operations.
Your answer
![](https://koobas.hobune.stream/wayback/20220613065652im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Load and save file. IOS problem 0 Answers
Button Navigation none - not working with touchscreen 0 Answers
Any 'swipe' navigation scripts? Any tips? 1 Answer
NavMesh really slow on mobile 1 Answer
How to save a text file in Windows 8 3 Answers