简体   繁体   English

如何在React原生中整合统一?

[英]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.

相关问题 如何将Unity集成到本机iOS App中? - How to integrate Unity inside native iOS App? 如何将SocketMobile与React Native应用程序集成? - How to integrate SocketMobile with React Native application? 如何将UINavigationController与React-Native组件集成 - how to integrate UINavigationController with React-Native component 如何将 Crashlytics 与 React Native 应用程序集成 - How to Integrate Crashlytics with React Native app 如何将 OpenStreetMap 集成到 react-native 项目中? - How to integrate OpenStreetMap into a react-native project? 如何将React Native与Dreamfactory REST API集成在一起? - How to integrate React Native with Dreamfactory REST API? 如何将 Unity + Vuforia 正确集成到现有的原生 iOS 项目中? - How to properly integrate Unity + Vuforia into an existing native iOS Project? 如何将unity ios项目集成到本机ios swift项目中? - How to integrate the unity ios project into native ios swift project? 如何在现有的 React Native App 中集成原生 ios 摄像头 SDK? - How to integrate native ios camera SDK in existing react native App? 如何在 React Native ios 应用程序(Algorand)中集成加密货币支付 - How to integrate cryptocurrency payments in react native ios app (Algorand)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM