subplatform | The name of the subplatform to modify. Supports "WeChat", "DouYin", and "MiniHost" (case-insensitive). |
isActive | True to activate the subplatform, false to deactivate it. |
void
Sets the activation state of the specified MiniGame subplatform.
Only one subplatform can be active at a time. When a subplatform is activated, its corresponding code will be included in compilation, and the associated macro will take effect.
The currently supported subplatform macros are:
* Macro of "WeChat" subplatform: "MINIGAME_SUBPLATFORM_WEIXIN"
* Macro of "DouYin" subplatform: "MINIGAME_SUBPLATFORM_DOUYIN"
* Macro of "MiniHost" subplatform: "MINIGAME_SUBPLATFORM_MINIHOST"