Skip to content

Fix: align camera service with cocos-editor behavior.#555

Merged
star-e merged 2 commits into
cocos:mainfrom
bofeng-song:bug
May 12, 2026
Merged

Fix: align camera service with cocos-editor behavior.#555
star-e merged 2 commits into
cocos:mainfrom
bofeng-song:bug

Conversation

@bofeng-song
Copy link
Copy Markdown
Contributor

@bofeng-song bofeng-song commented May 12, 2026

  • 3D 模式下初始化时网格不显示,需切 2D 再切回才能显示 — 初始化后调用 controller.active = true 显示网格
  • 3D view 模式下左键无法拖动平移 — 添加 isViewMode 检查进入 pan 模式
  • 2D/3D 切换时强制重置 gizmo 工具为 rect/position,不记录用户选择 — 移除 toolName 强制设置,与 cocos-editor
    一致

@bofeng-song bofeng-song requested review from knoxHuang and star-e May 12, 2026 06:14
} else if (event.leftButton) {
let isViewMode = false;
try {
const { Service } = require('../core/decorator');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

都用 import

@star-e star-e merged commit ecaad83 into cocos:main May 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants