简体   繁体   English

如何为Unity 3D创建角度模块?

[英]How create a angular module to Unity 3D?

I wish made an Angular module using Unity WebGL. 我希望使用Unity WebGL制作一个Angular模块。 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. 如果该模块将发展为Angular 2,那将是一件好事。但到目前为止我知道Angular 1。

Unity 3D export gave that: 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> 

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. 如果我成功,我将在Github上发布该模块。

Looks like there are now a couple of libraries (I haven't tested them): 看起来现在有几个库(我没有测试过它们):

https://github.com/rgoddat/AngularUnity https://github.com/rgoddat/AngularUnity

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM