Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

feat(editor): transform handles show what a drag will move, with a readout, wedge and start ghost, and the entity under the cursor is outlined

yhhcd39fbb6ceed
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f6715ccea..71bc69f6c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ published separately; it ships inside the editor.
### Changed
+- **Gizmos are redrawn.** The transform handles are larger and clearer: arrows have filled heads, rings dim on their far side, the scale handles are solid cubes, and the part under the cursor turns yellow while the others fall back as you drag. A chip beside the cursor reads the offset, angle or factor being applied (`X +120.0`, `Y 42.5°`, `X ×1.35`), a rotate drag fills the swept angle, a move leaves a ghost where it started and, with snapping on, ticks at each increment. The entity under the cursor is outlined faintly before you click it, and a selected entity's outline is a little heavier.
- **A material's preview is a real shape.** Selecting a material shows it on a sphere, cube or plane (lit materials open on the sphere, sprite shaders on the plane), over a dark, checker or light background, with a sample image for shaders that sample a texture; the choice is remembered per kind. The header carries the ball as its icon and the name with a faint extension, the shader is a plain section with a link to make it unique, and the Content Browser's material thumbnails use the same preview. The engine's offscreen preview target now has a depth buffer, so a mesh drawn there is no longer drawn inside out.
- **The 2D animation editors are redrawn.** In the sprite animation editor the view's tools float over its corner, playback and the timeline are one panel, frame events are flags on an event track (click one to rename, move or remove it), the frame source folds into a strip that opens on an empty clip, and frame rate, loop and Save no longer appear a second time in the inspector. The animator controller shows states as cards with their clip and speed, wires between a pair of states run side by side with a pill for the condition (dashed when it waits for the exit time), and its inspector puts the selected state or transition first, with the controller's layers, typed parameters and a folded constraints section below.
- **The tile editor matches its design.** The layer and tileset menus sit on the raised surface, a picked tile has a 2px frame and shows its id on hover, the brush column shows the tile id, the replace dialog's button says Replace, and the tileset inspector shows one-way and trigger as switches, the layer opacity is a slim slider, and a collision layer's friction and bounce fields are flat with their own heading.
diff --git a/desktop b/desktop
index 913673a14..98b7fe6a5 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 913673a14bdea4ddd109c592d96b86d4a8ff3154
+Subproject commit 98b7fe6a5b2c8e38ae66cbd88105a6b2117e2e83
diff --git a/tools/check-theme.mjs b/tools/check-theme.mjs
index d42b9131a..98192a519 100644
--- a/tools/check-theme.mjs
+++ b/tools/check-theme.mjs
@@ -142,6 +142,7 @@ const NAMES_THE_SAME_THING = [
['.ts-p', 'the tileset collision-polygon editor, a canvas of its own'],
['.ax.', "an Inspector vec field's axis letters: the legend for the gizmo's arms"],
['.world__cell-state', "the World panel's residency legend for what the viewport draws"],
+ ['components/GizmoReadout.tsx', 'the drag readout carries the dot of the gizmo axis it reports'],
['panels/SequencerCurve.tsx', 'a curve channel IS the axis channel, so it takes the axis colour'],
];
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index e71791aed..dac977cef 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -98,6 +98,8 @@ export const NOTED = {
{ note: 'The 2D animation editors are redrawn.' },
"feat(editor): a material's preview is a real sphere, cube or plane with a background and sample image, and its header, shader section and thumbnails follow":
{ note: "A material's preview is a real shape." },
+ 'feat(editor): transform handles show what a drag will move, with a readout, wedge and start ghost, and the entity under the cursor is outlined':
+ { note: 'Gizmos are redrawn.' },
'feat(editor): an asset header names its kind and size, and a segmented switch is used only when its words fit':
{ note: "An asset's header names its kind and size." },
"feat(editor): asset inspectors take the board's finish — a card preview, ruled key-value rows, tinted actions, a kind icon in the header":