简体   繁体   English

导出到ReGL Native的WebGL

[英]Export to WebGL for React Native

I exported my unity scene in webGl format but I do not understand the architecture of the exported folder as well as some type of file ... 'Build' folders containing json files and .unityweb files. 我以webGl格式导出了我的统一场景,但我不了解导出文件夹的架构以及某种类型的文件......'Build'文件夹包含json文件和.unityweb文件。 ? 'TemplateData' folders containing images and style that I understood. 'TemplateData'文件夹包含我理解的图像和样式。 And an index.html file, ok. 还有一个index.html文件,好的。

I want to integrate my unity scene in webGl format into a mobile application created in React Native. 我想将webGl格式的统一场景集成到React Native中创建的移动应用程序中。 For that, I want to use the react-native-webgl library that I tested successfully with their examples. 为此,我想使用我用他们的例子成功测试的react-native-webgl库。 However their example is constituted like this ( see the link ). 然而他们的例子是这样构成的(见链接 )。 The webGL files are in the src file. webGL文件位于src文件中。 There are only Java-script files. 只有Java脚本文件。 What is not the case in the export folder by Unity, there are no JavaScript files ... 在Unity的导出文件夹中不是这种情况,没有JavaScript文件......

How to export my scene in webGl JavaScript for library? 如何在webGl JavaScript中导出我的场景库?

If you have another idea to integrate a 3D planetarium into a mobile application in React-native? 如果您有另一个想法将3D天文馆集成到React-native的移动应用程序中? I am interested 我有兴趣

I think it exports from webGl html and I would like to webGl Javascript .. :/ ?? 我认为它从webGl html导出,我想webGl Javascript ..:/ ??

(My unity project is to make a planetarium in 3D :)) (我的团结项目是用3D制作一个天文馆:))

Unity 2017.3 - Android - Application react-native Unity 2017.3 - Android - 应用程序反应原生

It is not possible to export a Unity scene in React Native without any external plugins, as Unity doesn't support it. 在没有任何外部插件的情况下,无法在React Native中导出Unity场景,因为Unity不支持它。 However, this plugin will allow for Unity and React to communicate with each other using Web APIs, as Unity doesn't support React by default. 但是, 插件允许Unity和React使用Web API相互通信,因为Unity默认情况下不支持React。

It is important that Unity supports WebGL upon exporting however, otherwise you won't be able to run it on an HTML document. 但是,Unity必须在导出时支持WebGL,否则您将无法在HTML文档上运行它。

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

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