yasirkula / UnitySimpleFileBrowser

A uGUI based runtime file browser for Unity 3D (draggable and resizable)
MIT License
849 stars 111 forks source link

It seems impossible to select all files and not show them all, like this #56

Closed ShenKang4181 closed 2 years ago

ShenKang4181 commented 2 years ago

image

yasirkula commented 2 years ago

Can you please elaborate? We can see all files with the "All Files" filter and select them all via CTRL+A or the context menu at the top right. allowMultiSelection must be set to true, though.

ShenKang4181 commented 2 years ago

My code : FileBrowser.SetFilters( true );
FileBrowser.ShowLoadDialog( OnSelectBaoJiaWuLiao , null , FileBrowser.PickMode.Files , true , null , null , "选择报价物料单文件" , "确定" ); runtime : image

I want to customize "all files(.*)" text

yasirkula commented 2 years ago

Ah! You can customize these 3 public static variables from your scripts (FileBrowser.AllFilesFilterText = "blabla";):

https://github.com/yasirkula/UnitySimpleFileBrowser/blob/333c21cbf0acc31e049bfa4b1e84abb57ed200e2/Plugins/SimpleFileBrowser/Scripts/FileBrowser.cs#L233-L234

https://github.com/yasirkula/UnitySimpleFileBrowser/blob/333c21cbf0acc31e049bfa4b1e84abb57ed200e2/Plugins/SimpleFileBrowser/Scripts/FileBrowser.cs#L259-L260

https://github.com/yasirkula/UnitySimpleFileBrowser/blob/333c21cbf0acc31e049bfa4b1e84abb57ed200e2/Plugins/SimpleFileBrowser/Scripts/FileBrowser.cs#L276-L277

ShenKang4181 commented 2 years ago

I did it! Thank you. Love you