我希望使用 Unity WebGL 制作一个 Angular 模块。事实上,在这个话题上还没有做任何事情,今天也不存在任何模块。但是,我有点迷茫,我需要帮助。如果该模块能够发展到 Angular 2,那就太好了。但到目前为止我知道 Angular 1。
Unity 3D 导出给出了:
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity WebGL Player | Test Unity</title>
<style>
/* a style sheet needs to be present for cursor hiding and custom cursors to work. */
</style>
</head>
<body>
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" height="600px" width="960px"></canvas>
<script type='text/javascript'>
var Module = {
TOTAL_MEMORY: 268435456,
errorhandler: null, // arguments: err, url, line. This function must return 'true' if the error is handled, otherwise 'false'
compatibilitycheck: null,
dataUrl: "Development/ExportMiniDev.data",
codeUrl: "Development/ExportMiniDev.js",
memUrl: "Development/ExportMiniDev.mem",
};
</script>
</body>
</html>
你能不能给我一些开始。我已经花了很多时间在这上面。如果我成功了,我会在 Github 上发布那个模块。