yasirkula / UnitySimpleFileBrowser

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

Getting FileBrowser instance #65

Closed shyamnair3 closed 2 years ago

shyamnair3 commented 2 years ago

Hi,

How to access the FileBrowser instance to change transform,canvas, etc. at runtime?

yasirkula commented 2 years ago

Hi, you can change Instance's visibility to public (it's private because the file browser is supposed to be used via its static functions and users might get confused about whether or not to use Instance after seeing it in Intellisense): https://github.com/yasirkula/UnitySimpleFileBrowser/blob/bb487817ad4656d19d1e67d5375782531b7e8cb1/Plugins/SimpleFileBrowser/Scripts/FileBrowser.cs#L331

Or you can put the FileBrowser to your scene, assign it to a public variable, deactivate it in Awake/Start and then modify it as you wish.

shyamnair3 commented 2 years ago

Thank you for the quick response