blog games developers documentation portfolio gallery

More in this category:

Important build settings

Web Player:
When you want to display instant behaviour when a user drops a file onto Unity, make sure you have "Run in background" turned on.
It will also work if this is switched off, but the result will not be displayed unless the web player receives focus again.
Go to File -> Build Settings
Click on the WebPlayer and switch target if needed.
Click on "Player Settings"
Click on "Resolution and Presentation"
Make sure the "Run in Background" checkbox is on.
Note: Web player under Windows has drag & drop functionality switched off and will not work.


WebGL:
When a user drops a file onto Unity, WebGL needs to allocate stack memory for the file. I encountered memory errors when I used the default build settings in combination with big files. To prevent this, assign more memory to WebGL.
At the time of writing (Unity5 in Beta) this feature is undocumented, so it is hard to tell you how much memory should be assigned. The default is 256 MB. When I change it to 512 MB, the demo project runs fine, but I cannot tell you how much memory is needed for your project. You will have to experiment.
Go to File -> Build Settings
Click on WebGL and switch target if needed.
Click on "Player Settings"
Click on "Publishing Settings"
Adjust the "WebGL Memory Size" value.
WebGL build settings.






follow us