GUI.Window and Web Player

Hi all,

I have a menu script (CSharp) which runs fine when I run it from the unity editor. I have a menu system which shows up properly.

BUT when I build the project for web player, the menu is not showing up.

Does GUI.Window works in web player ???

Here is the code

if (GUI.Button(new Rect(0, 0, 50, 20), "Files"))
    show = true;

if(show)
    m_windowSize = GUI.Window(0, m_windowSize, ShowWindow, "");

Are there any permission for web player ??

Thanks for reading

The fact that I see the word “Files” makes me wonder if you’re using code from a library that doesn’t work for web builds.

There are security limitations that prevent certain libraries and operations from being used on the web.

For example, you definitely can’t write a file to a user’s computer from a web player (without a bunch of ninja skills).

There are actually many restrictions related to the file system that apply.

You also can’t do stuff like hide the mouse cursor or go full screen without a warning message when using a web player.

Thanks Bunny83 and Jahroy

I love this forum and let me bow down in front of you guys.

Yes, I am writing/uploading files to/from user/appdata/local/myproject directory.

I just left my lab so I don't have the code right now but yes I am using IO libraries

Let me ask the pundits here :

Is there a way to save / load files from webplayer ?

Any pointer on the ninja skills ?

Thanks for your quick responses !!