javascript - 如何为 Unity 3D 创建 Angular 模块?

标签 javascript angular unity-webgl

我希望使用 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 上发布该模块。

最佳答案

看起来现在有几个库(我还没有测试过它们):

https://github.com/rgoddat/AngularUnity

https://github.com/cHullaert/ng-unity

关于javascript - 如何为 Unity 3D 创建 Angular 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41088892/

相关文章:

javascript - 滚动时将标题/导航转换为导航图标

python - Chrome 中的嵌入器不允许生成 Wasm 代码

javascript - 队列 promise (ES6)

javascript - 添加数据时如何自动滚动到div的末尾?

java - 如何将 Spring boot 和 Angular 应用程序部署为单个 war 文件?

javascript - 如何使用 session 存储在 Angular 6 上存储和检索数据?

angular - Electron 加载模块失败

unity-game-engine - 如何使用 Unity 和 Vuforia 创建增强现实 Web 应用程序?

c# - Application.streamingAssetsPath 和 WebGL 构建

JavaScript AES 加密