Search Issue Tracker

By Design

Votes

3

Found in

5.6.0b11

Issue ID

893205

Regression

Yes

[WebGL] %UNITY_WEBGL_LOADER_GLUE% section is not properly replaced with custom template

WebGL

-

Resolved as By Design since we changed the embedding scheme in 5.6.
See https://docs.unity3d.com/2017.1/Documentation/Manual/webgl-templates.html for how the new system works.

====================
Steps to reproduce:

1) Download attached project ' UnityProject_UnityBugSubmission_5.6.0p11.zip' and open in Unity
2) Select menu 'Porfolio' > 'Assets Bundles' > 'Build Assets Bundles'
Note: It creates the AssetBundles and copies them in the 'AssetBundles' server root folder
'Copy Completed!' message should be printed in Console
3) Select menu 'Porfolio > Build Viewer (Release)'
Note: It creates the viewer application in the Viewer's server root folder
4) Launch index.html from ....\case_893205-UnityProject_UnityBugSubmission_5.6.0p11\UnityProject_UnityBugSubmission_5.6.0p11\Servers\Viewer directory

Actual result: %UNITY_WEBGL_LOADER_GLUE% section is not replaced with Canvas(check attached image 'NotReplaced.png'
Expected result: %UNITY_WEBGL_LOADER_GLUE% section should be replaced with Canvas(check attached image 'Replaced.png')

Reproduced with:
5.6.0b1, 5.6.0f1, 2017.0a4

Not reproduced with:
5.5.2p4

Comments (7)

  1. Marco-Trivellato

    Sep 12, 2017 08:41

    As of 5.6, WebGL Template tags changed. See here for more info: https://docs.unity3d.com/Manual/webgl-templates.html

  2. ababab5

    May 17, 2017 15:48

    Hi,

    Any news here?

  3. gateian

    Apr 25, 2017 11:20

    I came across this issue while trying to publish from version 5.6.0f3

    As the default built-in templates are working, I located them in the Editor installation folder and found the new way of generating a custom template as pointed to by AURIGAN.

    Specifically there are new TAGS %UNITY_WEBGL_LOADER_URL% and %UNITY_WEBGL_BUILD_URL% which must be used in combination with new code in the html head section. Check out the new default templates in your Unity Installation folder "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\WebGLTemplates\"

    This is definitely a better way of doing it but the old tag should be fixed and also the documentation needs to be updated.

  4. hippogames

    Apr 07, 2017 12:21

  5. Aurigan

    Apr 05, 2017 22:32

    It's not fixed they just changed how the whole things works. As of now this breaking change is completely undocumented and wasn't even mentioned in the release notes

    The only reference to this changing seems to be an old forum post: https://forum.unity3d.com/threads/new-unity-webgl-embedding-api-white-paper.430909/

  6. Chris-HG

    Apr 05, 2017 13:55

    Still happening in 5.6.0 RTM.

  7. hippogames

    Apr 04, 2017 07:26

    In which version was it fixed?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.