Custom templates will no longer work in 5.6 because the default loader setup has changed.
This change wasn’t mentioned in the update notes https://unity3d.com/unity/whats-new/unity-5.6.0 .
Nor has the documentation (Unity - Manual: WebGL templates ) been updated to reflect the changes.
Instead I have to waste my time discovering what the issue is then manually fiddling for hours to work out how to re-implement my previously working template.
I understand that the new scheme has benefits but this unannounced change just creates chaos and waste for all your customers. Please update the documentation and release notes immediately to save others from wasting their time and then provide us with a migration guide!
Aurigan:
Custom templates will no longer work in 5.6 because the default loader setup has changed.
This change wasn’t mentioned in the update notes https://unity3d.com/unity/whats-new/unity-5.6.0 .
Nor has the documentation (https://docs.unity3d.com/Manual/webgl-templates.html ) been updated to reflect the changes.
Instead I have to waste my time discovering what the issue is then manually fiddling for hours to work out how to re-implement my previously working template.
I understand that the new scheme has benefits but this unannounced change just creates chaos and waste for all your customers. Please update the documentation and release notes immediately to save others from wasting their time and then provide us with a migration guide!
Apologies for that. We internally missed the deadline for updating the installed docs before release. Online docs will be updated as soon as possible.
We will also mention it to the release notes. Again, sorry for the inconvenience.
Any word on a migration guide? Providing some additional templates to work from would be welcomed also. Thanks.
This is my template for full window. (unity 5.6).
But i cant use a background image, and i have no progress bar… (also with the default template)
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>WebGL | %UNITY_WEB_NAME%</title>
<link rel="stylesheet" href="TemplateData/style.css">
<style type="text/css">
#gameContainer { width: 100%; height: 100%; position: absolute;}
* {
margin: 0;
padding: 0;
}
canvas {
width: 100%;
height: 100%;
position: absolute;
}
body {
background-color: black;
}
</style>
<link rel="shortcut icon" href="TemplateData/favicon.ico" />
<script src="TemplateData/UnityProgress.js"></script>
<script src="Build/UnityLoader.js"></script>
<script>
var gameInstance = UnityLoader.instantiate("gameContainer", "Build/WebGL.json", {onProgress: UnityProgress});
</script>
</head>
<body class="template">
<canvas class="webgl-content" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
<div id="gameContainer"></div>
%UNITY_WEBGL_LOADER_GLUE%
</body>
</html>