如何为Unity 3D创建角度模块? [英] How create a angular module to Unity 3D?

查看:103
本文介绍了如何为Unity 3D创建角度模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望使用Unity WebGL创建一个Angular模块.实际上,在这个主题上还没有做任何事情,并且今天还没有模块. 但是,我迷失了一点,我需要帮助.如果该模块将开发为Angular 2,那将是很好的选择.但是到目前为止,我知道Angular 1.

I wish made an Angular module using Unity WebGL. Indeed nothing has already done on this topic and no module existed today. However, I am little lost and I need help. It would be good if that module will develop to Angular 2. But I know Angular 1 so far.

Unity 3D导出实现了这一点

Unity 3D export gave that:

<!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上发布该模块.

Could you please provide to me something to start. I already pass a lot of my time on this. If I succeed I will publish that module on Github.

推荐答案

现在好像有几个库(我还没有测试它们):

Looks like there are now a couple of libraries (I haven't tested them):

https://github.com/rgoddat/AngularUnity

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

这篇关于如何为Unity 3D创建角度模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆