Platform

Platform Export Overview

In order to meet the demands of developers for launching on various platforms and truly achieve development in one place and running everywhere, 1.4 version began to support multi-platform export. Projects created by developers through the editor can be quickly exported to the projects required by different platforms.

Prepare in Advance

After the project is developed in the editor, you can export the project for each platform and publish it. Before exporting, let's first understand the export panel and export settings.

Export Panel

When we complete the project development and need to export it to a certain platform (taking exporting to the WechatMiniGame platform as an example), we can follow the steps below:

1、Click the Export button on the left side of the editor:

2、On the left side of the export panel that appears, select the export platform:

3、On the right side of the export panel are some project-related export configurations, which are mainly divided into two parts: General configuration (in the red box) and Platform-related configuration (in the yellow box):

Export Configuration Instructions

The platform-related export configuration will be described separately in the platform export document. Here we focus on the general configuration that is independent of the platform.

ConfigurationDescribe
Project NameProject name. The root directory name exported to the local computer is the project name.
Main SceneProject main scene
Engine versionThe engine version number used by the project
Upload to CDNWhether to upload assets to CDN
Texture TypeSee Texture Compression for more details.
Tree shakingWhether to crop the exported assets:
None: Export all assets without cropping
Current Scene: Export only the assets used in the current scene
All Scene: Treeshaking all scenes, exporting all the assets used by the scenes
WebGL ModeSelect the version to use with WebGL:
Auto: WebGL2.0 is preferred. If the operating environment does not support it, it will automatically switch to WebGL1.0
WebGL1.0: Using WebGL1.0
WebGL2.0: Using WebGL2.0
AlphaWhether the canvas supports transparent background. If you want the content below the canvas to be visible, you can turn it on.
Preserve Drawing BufferControls whether the drawing buffer retains its contents after calling the gl.clear() method.
DPR ModeThe pixel ratio of the device,Control the size of the canvas by calling engine.canvas.resizeByClientSize:
Auto: Automatic adaptation, that is, the parameter is window.devicePixelRatio
Fixed: Developers set their own parameters
After selecting Fixed, developers can enter the parameters they need to set.

Supported export platforms

Currently, Galacean supports exporting to the following platforms:

Export to H5 platform

Export to WeChat Mini Game Platform

Was this page helpful?