folder support
radiatoryang opened this issue · 2 comments
radiatoryang commented
implementation in the sidebar should resemble #3 (comment)
- internally, this is what Yarn Spinner already does... all files get loaded into the same network
- this is pretty important for huge projects with lots of files / scenes / characters
- for earlier discussion, see previous issue #3
work to do:
- need to edit MerinoTreeElement to add two new leaf pseudo-types... a "folder" leaf and a "file" leaf
- add "load folder" button (or let user select multiple folders? need to research Unity Editor's built-in folder picker utility)... sets
string[] currentFolders
- a "load folder(s)" method should traverse
currentFolders
for all subfolders (recursively) and generate the data for the TreeView, will need to modify GetData as appropriate - a "save folder(s)" method should call SaveData for each item
- should we let users rename folders and files from the sidebar? seems weird to duplicate functionality that's already in the Unity Editor project tab, but I think it's pretty possible
radiatoryang commented
radiatoryang commented