There are two templates available in b19, but I can’t see any template structure specs.
The “template” search in the manual returns “Using Webplayer Templates”, but nothing on webgl.
Sorry, the manual is not up to date on this yet. The process is basically the same as for web player templates, though:
-Create a Folder “WebGLTemplates” in your assets folder
-Copy Unity.app/Contents/PlaybackEngines/WebGLSupport/BuildTools/WebGLTemplates/Default to that folder, and rename it as you like
-Edit the template to your liking.
Unfortunately, there is a bug right now where Unity will pick up .js files in the template and try to compile them as Unity Script files, and then fail doing so. This is fixed, but you will need to wait for a new release (b20 or b21) to use this.
Edit: b21, it will be, missed b20 branch-off by a couple of hours.
That will be great. Thanks a lot.
Hello,
where exactly is the folder “Unity.app/Contents/PlaybackEngines/WebGLSupport/BuildTools/WebGLTemplates/Default” located?
edit:
using atm beta 18, maybe thats why i cant find it. I will update to the latest build as soon as the website is back.
i tried to copy my custom template into the WebplayerTemplets folder and the templates didnt show up. I then tried putting my template into the folder where the Default template is located. which was:
Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport\BuildTools\WebGLTemplates
this seemed to work after i restarted unity.
for reference i am running Unity 5.0.0f2 Pro
Hope this helps. Also if there is a bettter way please let me know.
thanks
For WebGL, you should put it into a folder called “WebGLTemplates”, not “WebplayerTemplets”.