Skip to content

Commit

Permalink
update envCondition in module config
Browse files Browse the repository at this point in the history
  • Loading branch information
yanOO1497 committed Feb 26, 2025
1 parent 454d348 commit 7c760be
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions editor/engine-features/render-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@
"label": "i18n:ENGINE.features.gfx_webgl.label",
"description": "i18n:ENGINE.features.gfx_webgl.description",
"category": "graphics",
"enginePlugin": true
"enginePlugin": true,
"envCondition": "$HTML5 || $MINIGAME"
},
"gfx-webgl2": {
"label": "i18n:ENGINE.features.gfx_webgl2.label",
"description": "i18n:ENGINE.features.gfx_webgl2.description",
"category": "graphics",
"enginePlugin": true
"enginePlugin": true,
"envCondition": "$HTML5 || $MINIGAME"
},
"gfx-webgpu": {
"label": "i18n:ENGINE.features.gfx_webgpu.label",
"description": "i18n:ENGINE.features.gfx_webgpu.description",
"category": "graphics",
"enginePlugin": false
"enginePlugin": false,
"envCondition": "$HTML5"
},
"animation": {
"label": "i18n:ENGINE.features.animation.label",
Expand Down Expand Up @@ -209,7 +212,6 @@
"default": false
}
}

},
"physics-2d-builtin": {
"label": "i18n:ENGINE.features.physics_2d_builtin.label",
Expand All @@ -219,7 +221,9 @@
"isNativeModule": true,
"cmakeConfig": "USE_BOX2D_JSB",
"label": "i18n:ENGINE.features.physics_2d_box2d_jsb.label",
"description": "i18n:ENGINE.features.physics_2d_box2d_jsb.description"
"description": "i18n:ENGINE.features.physics_2d_box2d_jsb.description",
"envCondition": "$NATIVE",
"fallback": "physics-2d-box2d-wasm"
}
}
},
Expand Down Expand Up @@ -472,4 +476,4 @@
"checkable": true
}
}
}
}

0 comments on commit 7c760be

Please sign in to comment.