Search Unity

[Question] Get folder structure and filenames inside those folders at Runtime (Hololens)

Discussion in 'Editor & General Support' started by PSorianoSM, Mar 27, 2019.

  1. PSorianoSM

    PSorianoSM

    Joined:
    Mar 27, 2019
    Posts:
    1
    Hello there,
    I'm developing a software to show animated 3d machine models on Hololens. Each machine's data is stored in the following way:

    • Resources
      • Main Folder
        • Machine 1
          • Machine audios
          • Machine models
          • etc...
        • Machine 2
          • etc...
        • ...
        • Machine N

    Right now I have a txt on Main Folder root that contains each machine's name, which I pass to the menu item to select the one I want to visualize. I want to ease the process of adding new machines by having the app read the names of the folders on Main Folder and create a button on the menu for each of them, without the need of a txt file.

    Also, I'd like to get the names of the files inside each machine subfolder to check if the data is complete.

    I've been looking around and I haven't found any solutions. I'd appreciatte if someone would point me in the right way.