Unity and Cocos stay as parallel schemes; apps/minigame ships the Godot 4.7 WeChat pack for DevTools. Co-authored-by: Cursor <cursoragent@cursor.com>
881 B
881 B
Cocos 场景挂载(3.8.6)
最快路径
- Creator 3.8.6 打开
apps/minigame-cocos(本机:tools/CocosCreator-3.8.6,说明见tools/README-COCOS.md) - 资源管理器打开
assets/scenes/Main.scene(已挂Game+AutoSceneSetup) - 点顶部 预览(▶):运行时生成 pastel 城市 / 玩家 / 第三人称相机 / HUD
- 构建 → 微信小游戏 →
build/wechatgame(勿覆盖apps/minigameUnity 导出)
手动挂线(可选)
若不用 AutoSceneSetup,根节点挂 GameRoot,并拖拽:
| 属性 | 组件 |
|---|---|
| player | PlayerMotor |
| cameraFollow | CameraFollow |
| world | WorldBootstrap |
| hud | HudView |
| joystick | VirtualJoystick |
| playerNode | 玩家节点 |
操作
- 左半屏拖动摇杆 / WASD 移动
- 右半屏拖动旋转相机
- 右侧点按 / E / Space 互动