- Home /
Question by
carcanhadesapo11 · Feb 01, 2019 at 06:42 PM ·
unity 5webgl
WEBGL SENDMESSAGE
HELPP... How to fix this?
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Expressões</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:100" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="responsiveMinimalTemplateStyles.css"/>
<script src="Build/UnityLoader.js"></script>
<script src="responsiveMinimalTemplateLoader.js"></script>
<script>
var settings = {
Module:
{
postRun: [ function() {
gameInstance = SendMessage('GerenciadorAtv', 'callPost', 312);
gameIsRunning = true ;
}],
}
};
// instantiateUnity("Build/Expressoes.json","4:3");
var gameInstance = instantiateUnity("Build/Expressoes.json","4:3");
</script>
</head>
<body>
SendMessage????????? I want to put a value in the function, but it is not running
Comment
Is that legal syntax for a webgl build? Our most recent one looked like this:
gameInstance = UnityLoader.instantiate("gameContainer", "Build/WebPages.json", {onProgress: UnityProgress});
Your answer
Follow this Question
Related Questions
Unity 4 compatibility to Unity 5 WebGL 1 Answer
[WEBGL] PLAYER CONTINUES TO RUN AFTER WEBGL-CONTENT IS REMOVED FROM DOM 1 Answer
Unity5 WebGL gyroscope access 2 Answers
What to use instead of movie texture in Unity 5 webGL? Is there any workaround? 1 Answer
Is there a way to view how the game will look before building with WebGL? 0 Answers