Unity3D applet deployment and development

Unity3D currently supports the development of WeChat applets, and is currently in the public beta stage, you can refer to the documentation . In this way, we only need to finish the local development in Unity, and export the WeChat applet project with one click for release.

0, Download the applet development tool and Unity WeChat applet plug-in

Small program development tools: wechat_devtools_1.05.2204264_x64.exe

UnityPlugin applet plug-in: minigame.202302151921.unitypackage

1. Preparation for development

Before development, we need to apply for the WeChat applet on the WeChat public platform and download the WeChat developer tools. Download and install this directly, just log in and use it.

The WeChat developer background requires the following settings, otherwise Unity development is not supported.

Quick adaptation is very important:

And get the WeChat Appid and the name of the applet, which we need to use when publishing:

2. Unity development

Use Unity version number: Unity 2021.3.x LTS; (choose build-in pipeline development, URP to be tested)

Import the Unity WeChat plugin: minigame.202302151921.unitypackage

After importing, develop normally, and then click the WeChat applet to enter the publishing interface:

Here the appid and program name are required, and the rest can be used as needed. For the convenience of the first loading, we change the package loading method to the package body loading.

Click the commonly used export, and then we can find the corresponding WeChat applet folder in the filling path, the first of which is our applet folder:

3. Import the WeChat Mini Program and publish it

Install WeChat development tools: wechat_devtools_1.05.2204264_x64.exe

Documents that can be consulted when encountering adaptation problems in the development of Guocheng :

填写合适的项目名称,选择合适的本机空目录后,登录 刚刚注册的小程序管理平台,如下图找到小程序的 AppID,填入表单的“AppId”文本框中。

填写完整后点击右下角“新建”按钮,即可完成创建小游戏。

在开发者工具中就能进入小游戏的可视化开发界面了。

4,性能测试(敬请期待~!!!)

... ...

Guess you like

Origin blog.csdn.net/Kaitiren/article/details/129294513