WeChat mini-games seem to be very popular in recent years. I plan to familiarize myself with the process.
Unity to WeChat mini-game solution provided by WeChat
Address:https://developers.weixin.qq.com/minigame/dev /guide/game-engine/unity-webgl-transform.html
-
Verify the process first, create an empty project, and import the plug-in provided by WeChat into the empty project
.
-
Select WebGL as compilation platform
-
Just click on the Export WeChat Mini Game on the top and fill in the necessary information (appid...etc.)
-
Then click compile and package
-
Then report an error
Follow the prompts to solve the problem
https://github.com/wechat-miniprogram/minigame-unity-webgl-transform/blob/main/Design/WasmSplit.md
The result is that there is no solution, so ignore it at this time. Look at the folder you chose to export and find that the exported project has a project
Then use the WeChat developer tool to open your project< /span>
Just open this
Open WeChat Developer Tools Click Settings->Extension Settings Then add this plug-in
After opening the project, Unity's built-in Chinese font could not be displayed. The reason was not found, so I changed it to a font before it was displayed. The comparison effect is as follows
Unity scene< a i=2> WeChat scene Unity’s own methods are basically supported. I verified that the BestHTTP plug-in cannot be used, and the scene switching will crash. I haven’t found the problem yet Although there is no specific verification to complete everything here, but Unity’s export of WeChat mini-game is adjusted Follow up and verify the frequently used plug-ins to see if they are supported March 06, 2023 14:48:28