[英]how to integrate unity in React native?
Is this possible to integrate / configure unity(game engine) with react native and develop the game based application? 这是否可以集成/配置统一(游戏引擎)与本机反应并开发基于游戏的应用程序? if yes, can you tell me what is the procedure / architecture?
如果有,你能告诉我什么是程序/架构? Thanks
谢谢
You can embed a WebGL component inside a RN app. 您可以在RN应用程序中嵌入WebGL组件。 And then load the game build from some server.
然后从某个服务器加载游戏构建。
react-unity-webgl can be helpful here. react-unity-webgl在这里很有帮助。
Something on these lines 这些线上的东西
//constructor
this.unityContent = new UnityContent(
"<YOUR_BUILD_FILE>",
"<YOUR_UNITY_LOADER_FILE>"
);
//render
render() {
return <Unity unityContent={this.unityContent} />;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.