Skip to content

[Feature] Adopt UntoldEngine's gizmo system instead of the editor's own copy - #206

Merged
untoldengine merged 1 commit into
developfrom
extract-gizmo
Dec 2, 2026
Merged

untoldengine merged 1 commit into
developfrom
extract-gizmo

Conversation

@untoldengine

Copy link
Copy Markdown
Owner

Summary

Companion to untoldengine/UntoldEngine#1431 (merged), which extracted the editor's translate/rotate/scale gizmo into the engine as public API. This PR switches the editor to consume the engine's version instead of maintaining a parallel copy.

  • Deleted Systems/GizmoSystem.swift, GizmoGroup.swift, GizmoPalette.swift, and Editor/Viewport/TransformSpace.swift — all now engine-owned.
  • Added thin adapters bridging editor-only state to the engine's injection points: EditorGizmoSnapProvider (GizmoSnapProvider), EditorRepresentationHandlesGizmoProvider (GizmoHandleOverrideProvider), GizmoToolBridge (TransformTool → GizmoMode, re-adds the EditorRepresentationHandles.select side effect the engine's createGizmo(mode:) deliberately dropped).
  • TransformSpace+Editor.swift adds the title/help UI copy the editor needs onto the engine's TransformSpace enum.
  • EditorViewportSettings/EditorController/EditorGlobals now read/write the engine's gizmo globals directly instead of their own shadow copies.
  • EditorRenderingSystem/EditorRenderPasses/EditorRenderPipeLines no longer duplicate the gizmo render pass/pipeline — call into the engine's registerGizmoPipeline()/RenderPasses.gizmoExecution, keeping only the editor's own play/edit-mode gating.
  • Package.swift repointed to UntoldEngine's develop branch (was a local path dependency during development).
  • Trimmed/moved gizmo tests redundant with the engine's own suite; added GizmoEngineAdaptersTests.swift for the new adapter types.

Test plan

  • swift build passes against the real develop branch dependency
  • swift test — 1258 tests, 0 failures, 1 pre-existing skip
  • Manually verified in the running editor: click-select, drag, rotate, scale, undo/redo, and a scripted entity's representation-handle drag

…wn copy

Companion change to untoldengine/UntoldEngine#1431, which extracted the
editor's translate/rotate/scale gizmo into the engine as public API.
Switches the editor to consume it instead of maintaining a parallel copy.

- Deleted Systems/GizmoSystem.swift, GizmoGroup.swift, GizmoPalette.swift,
  and Editor/Viewport/TransformSpace.swift — all now engine-owned.
- Added thin adapters bridging editor-only state to the engine's
  injection points: EditorGizmoSnapProvider (GizmoSnapProvider),
  EditorRepresentationHandlesGizmoProvider (GizmoHandleOverrideProvider),
  GizmoToolBridge (TransformTool -> GizmoMode, re-adds the
  EditorRepresentationHandles.select side effect the engine's
  createGizmo(mode:) deliberately dropped).
- TransformSpace+Editor.swift adds the title/help UI copy the editor
  needs onto the engine's TransformSpace enum.
- EditorViewportSettings/EditorController/EditorGlobals now read/write
  the engine's gizmo globals directly instead of their own shadow copies.
- EditorRenderingSystem/EditorRenderPasses/EditorRenderPipeLines no
  longer duplicate the gizmo render pass/pipeline — calls into the
  engine's registerGizmoPipeline()/RenderPasses.gizmoExecution, keeping
  only the editor's own play/edit-mode gating.
- Package.swift repointed to UntoldEngine's develop branch (was a local
  path dependency during development).
- Trimmed/moved gizmo tests that were redundant with the engine's own
  suite; added GizmoEngineAdaptersTests.swift for the new adapter types.

Verified: swift build and swift test both pass (1258 tests, 0 failures,
1 pre-existing skip) against the real develop branch dependency.
Manually tested click-select, drag, rotate, scale, undo/redo, and a
scripted entity's representation-handle drag in the running editor.
@untoldengine
untoldengine merged commit cf5a95d into develop Dec 2, 2026
1 of 2 checks passed
@untoldengine
untoldengine deleted the extract-gizmo branch December 2, 2026 23:08
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.

1 participant