MinimalWebServer.zip
I made something in WinForms just to test if it works, here is a zip that contains a file named MinimalWebServer.exe, if you run it, it will set the name of the directory it is in, in a text box, and clicking the button will make it serve the files in that directory be served to the Web Browser. (If you just replace the text in the input box with any other directory in your pc it will serve the other things instead).
The idea here is you place the MinimalWebServer.exe in the Web folder that has your game built for web and just double click the exe file.
Then you load a web browser and just type the url as http://localhost:8000, and it should just be the index.html of whatever is in the directory. If no index.html is in the directory you will get a 404 error.
I sent the source files along, the Visual Studio solution and all. It's written using WinForms and the same C# and .NET used by the Editor currently. The idea is to try and kinda figure out the basics of how the UX of this should work before attempting something in the editor itself.
This is just something written in very few minutes, so there is no stop of the server, if you close the window it will terminate the server. Only one window can be opened at the same time or it will cause problems.
I made something in WinForms just to test if it works, here is a zip that contains a file named MinimalWebServer.exe, if you run it, it will set the name of the directory it is in, in a text box, and clicking the button will make it serve the files in that directory be served to the Web Browser. (If you just replace the text in the input box with any other directory in your pc it will serve the other things instead).
The idea here is you place the MinimalWebServer.exe in the Web folder that has your game built for web and just double click the exe file.
Then you load a web browser and just type the url as http://localhost:8000, and it should just be the index.html of whatever is in the directory. If no index.html is in the directory you will get a 404 error.
I sent the source files along, the Visual Studio solution and all. It's written using WinForms and the same C# and .NET used by the Editor currently. The idea is to try and kinda figure out the basics of how the UX of this should work before attempting something in the editor itself.
This is just something written in very few minutes, so there is no stop of the server, if you close the window it will terminate the server. Only one window can be opened at the same time or it will cause problems.