Unity develops WeChat games

foreword

Today, I would like to share with you my recent development of WeChat mini-games with Unity and the pitfalls;

WeChat mini-games are WeChat mini-programs, mini-games are a subset of mini-programs, mini-games are a special kind of mini-programs; this article is recommended for everyone to collect, full of dry goods

Demonstration effect

Unity develops WeChat applets

Development Resources

Unity 3D

Unity 3D download official website

Unity conversion plugin

Package package download address of the Unity conversion applet

WeChat Developer Tools 

WeChat developer tools download URL

WeChat public platform developer account  

WeChat public platform link address

Development Process

1. Apply for a WeChat official platform developer account

Register a mini game account

Enter  the Mini Program registration page  to fill in the information and submit the corresponding materials according to the guidelines. The service category should be "Game", and the sub-category can be "Casual Game" first, and then you can have your own Mini Game account.

2. Install and start developer tools

After registering a Mini Game account, you should download  the developer tools 

Open the installed developer tools client, and use the WeChat account just registered for the mini game account to "scan" and scan the QR code to enter the mini game development environment.

As shown in the figure below: Select the "Mini Game Tab" in the "Mini Program Project" on the left, and then click the "+" sign on the right to start creating a mini game project

Fill in the appropriate project name, select the appropriate local empty directory, log in to  the newly registered applet management platform, find the AppID of the applet as shown in the figure below, and fill it in the "AppId" text box of the form

After completing the filling, click the "New" button in the lower right corner to complete the creation of the mini game; you can enter the visual development interface of the mini game in the developer tools

3. Create a Unity project and modify the configuration

As shown in the figure below: This is a Unity project created by the editor. A small game has been written, and you can also use an empty project directly, which is also possible;

As shown in the figure below: Modify the packaging method of Unity's current project and switch to the WebGL platform

4. Import the Unity conversion plug-in into the Unity project

Import the conversion plug-in we downloaded before into the Unity project, as shown in the following figure:

As shown in the figure below: Let me show you the changes in the Unity compiler after importing the conversion plug-in

5. Unity project transformation mini-game

So far, the small game made by Unity has been generated as a WebGL project, and then we need to open this project with WeChat developer tools

6. Open the WebGL project in developer tools

 This is our developer tool, as shown in the image below:

In the next step, open the WebGL project generated by Unity with developer tools, just click to open the minigame folder

As shown in the figure below: This is the opened page

Submit the mini game to the personal developer account, and finally we need to submit the game version to the personal developer account for review, and finally publish it to the WeChat applet

7. Submit for review and release the game

Let’s share this article here, friends who are interested in this piece can read my other articles

If you have any questions, you can add me to chat with WeChat at yf1553653788

Guess you like

Origin blog.csdn.net/Ai1114/article/details/132362213