Hi everyone, I´m wondering how can I open a windows file explorer in my unity game. I have seen several assets to create a file browser in Unity, but I prefer that my game open a regular windows file explorer (if is posible for Mac too ) Thanks a lot in advance!!
https://msdn.microsoft.com/en-us/library/aa984392(v=vs.71).aspx I've wanted to know how to do stuff like this as well. I don't know exactly how well this'll work but you're going to have to look into raw c# methods of doing this. Unity doesn't have a built-in method to do this in your game. In the editor, it does, though
I´m using: System.Diagnostics.Process.Start("explorer.exe","/select,"+path); On this way, it show a regular explorer window, but I want to be able to select (like in open option in any program) a specific file to open in my game. Thanks!!
It sounds like you need to create a custom file dialog. Check out the c# directory class, it has all the functionality required to build your own file dialog. https://msdn.microsoft.com/en-us/library/system.io.directory(v=vs.110).aspx
Hello, I made a Asset to use the Native File Browser from Windows and Mac in Unity at runtime, it's available on the Asset Store: https://www.assetstore.unity3d.com/en/#!/content/68064 I've been searching for a way to do that for more than a year... and finally found how to do it
Sorry for opening an old thread. I found this pretty good Github project that does exactly what has been asked (PC/MAC): https://github.com/gkngkc/UnityStandaloneFileBrowser
Once I have showed in a file browser a .png file with UnityStandaloneFileBrowser project, do you think is possible to open it with a specific app? My goal is to offer a way to find and print an image
You can take a look at this for windows: https://assetstore.unity.com/packages/tools/integration/lcprinter-simple-texture-printer-67594 (I have no idea if it works or not, have no experience with it!) Theoretically you can call the standard printer libraries, but I have no idea if it's supported on any other platforms (and of course you will need to write platform-dependent code because Unity does not have platform-independent support for printers).
for some reason when i tried to open a compressed zip file, it only opens up file explorer. does anyone know the solution to this?