Export from Unity
Welcome to the Unity WebGL Mini Game Adaptation (Conversion) Solution. This solution is designed to reduce the development cost of adapting Unity games to PlaysOut mini games. Leveraging WebAssembly technology, it allows existing Unity projects to be adapted for PlaysOut mini games without the need to switch engines or rewrite core code.
Plugin Installation
Download the Unity conversion plugin from the link: click
In the Unity Editor, import the plugin via Assets > Import Package > Custom Package.
Export Process
In Unity, switch the platform to WebGL (File > Build Settings > Platform > WebGL).
Configure build settings: Add scenes and set Player Settings (e.g., Compression Format to Brotli for size optimization).
Access the plugin menu: Select WeChat Mini Game > Convert to Mini Game from the top menu bar.
In the conversion panel, fill in:
Game AppID (mandatory, non-test AppID).
Export path (specify a folder).
Asset loading method for the main package (recommend “In Mini Game” to avoid server dependency).
Other options: Game orientation, subpackage configuration, etc.
Click Generate and Convert (or “Export WEBGL and Convert to Mini Game”) and wait for the automated WebGL build and conversion (may take a few minutes).
Output: A minigame folder is generated, containing the Mini Game project package.
Preview and Publish
Open WeChat Developer Tools, select “Mini Program” > “Import Project,” and choose the minigame folder.
Authorize the plugin and add Unity adaptation, then click Compile and Run.
Optimization: Adjust performance (e.g., reduce Draw Calls)
Last updated