简体   繁体   中英

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. And then load the game build from some server.

react-unity-webgl can be helpful here.

Something on these lines

//constructor
this.unityContent = new UnityContent(
  "<YOUR_BUILD_FILE>",
  "<YOUR_UNITY_LOADER_FILE>"
);

//render
render() {
    return <Unity unityContent={this.unityContent} />;
}

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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