I know unity webplayer cannot read local files. Am well aware. I am not just trying to access local files for a standard web game.
I’ve written an application that uses Unity Web Plugin as a component in an enterprise application for a company. The Unity Web Plugin is being loaded into another application through the use of a embedded web browser. So the .unity3d file and the .html file are actually stored on the local users computer.
I need to read files from the local users computer. I know I must use a workaround and Unity cannot do it directly. So I am just wondering if anyone has any suggestions about how to do this.
The application that unity and the web browser are embedded into is a C# application. So right now I succesfully have it working that unity calls a javascript function, and that javascript function calls a method in the C# application. I am planning to use this route of attack to get local files, as in have unity send the request to the containing C# application, the C# app will grab the files and then somehow deliver them back to Unity. But I am wondering, does anyone know of a better method?