- Home /
Undefined object System.Windows.Forms OS X/Linux
When Opening the file dialog in windows editor/player, this dll works perfectly, but when opened on a mac/linux computer, the object seems to be undefined
using System.Windows.Forms;
public class TestClass : MonoBehavior{
private OpenFileDialog ofd_texture = new OpenFileDialog();
void Start(){
ofd_texture.Title = "Test Title";
ofd_texture.Show();
}
}
I have also tried Gtk-sharp but when executed, it gave an error like "method not found" or along those lines. I really need a file browser, are there any good alternatives (i have looked at FileBrowser Enhanced, but tried it with no luck)
Answer by ArkaneX · Jan 03, 2014 at 10:20 AM
You can check these file browsers:
FileBrowser by AngryAnt
ImprovedFileBrowser by Daniel Brauer
UniFileBrowser by Eric5h5 (paid)
Answer by PygmyMonkey · Aug 05, 2016 at 10:51 AM
Hello,
I made an 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 :)
Your answer
Follow this Question
Related Questions
JSon Parsing Mac issues with Unity 4.x under Steam platform 0 Answers
Can keyboard multimedia key events be captured? 0 Answers
How do I download Linux & Mac Build Support? 0 Answers
Standalone Build Problem [Linux/Mac] 1 Answer
No Linux/Mac modules 1 Answer