feat(editor): focus hierarchy object on double click

This commit is contained in:
ayuan9957 2026-06-17 17:46:24 +08:00
parent b76bc94902
commit 137c3d67dd

View File

@ -2913,6 +2913,9 @@ private:
if ((leftClicked || rightClicked) && !ImGui::IsItemToggledOpen()) {
if (leftClicked) {
MetaCoreApplyHierarchySelection(editorContext, objectId, true);
if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
editorContext.GetCameraController().FocusGameObject(gameObject);
}
} else if (!editorContext.IsObjectSelected(objectId)) {
editorContext.SelectOnly(objectId);
}