我希望使用 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 上发布该模块。
最佳答案
关于javascript - 如何为 Unity 3D 创建 Angular 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41088892/