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.

docs(outliner): drop engine/doc names from code comments

esengine260922646c18
diff --git a/desktop/src/components/VirtualTree.tsx b/desktop/src/components/VirtualTree.tsx
index d339e55e8..c8b2d125d 100644
--- a/desktop/src/components/VirtualTree.tsx
+++ b/desktop/src/components/VirtualTree.tsx
@@ -7,7 +7,7 @@
* to the full list, so a tree of thousands of entities stays a handful of DOM
* nodes. The list MUST already be flattened to render order (see
* {@link buildOutlinerItems}); this owns no hierarchy — just the scroll window.
- * Shared by the editor + PIE outliner trees (one virtualization path).
+ * Shared by the editor + live-game outliner trees (one virtualization path).
*
* Extra props (className / onDragOver / onDrop / …) spread onto the scroll
* container, so the outliner can attach empty-space drag-drop to it.
diff --git a/desktop/src/engine/EditorControlSurface.ts b/desktop/src/engine/EditorControlSurface.ts
index 1e51b5d98..3b6d1467d 100644
--- a/desktop/src/engine/EditorControlSurface.ts
+++ b/desktop/src/engine/EditorControlSurface.ts
@@ -189,7 +189,7 @@ export class EditorControlSurfaceImpl {
return this.s.model.sceneFolders();
}
- /** Set an entity's editor visibility (UE5 bHiddenInEditor; not gameplay enabled). */
+ /** Set an entity's editor visibility (an editor-only flag, not gameplay enable). */
setEntityHidden(id: EntityId, hidden: boolean): void {
this.s.commands.setEntityVisible(id, !hidden);
}
diff --git a/desktop/src/engine/SceneCommands.ts b/desktop/src/engine/SceneCommands.ts
index 5c39dcd0b..1fec6fb27 100644
--- a/desktop/src/engine/SceneCommands.ts
+++ b/desktop/src/engine/SceneCommands.ts
@@ -495,7 +495,7 @@ export class SceneCommandsImpl {
/**
* Delete a folder, moving its contents (entities + descendant folders) up to its
- * parent (UE5 semantics — entities are never destroyed). One undo step.
+ * parent — entities are never destroyed. One undo step.
*/
deleteFolder(path: string): void {
const p = normalizeFolder(path);
@@ -666,10 +666,10 @@ export class SceneCommandsImpl {
}
/**
- * Toggle an entity's editor visibility (UE5 `bHiddenInEditor`) — a dedicated
- * editor-only flag the reconciler folds into the render projection. Distinct
- * from a component's gameplay `enabled`: hiding never edits component data, so
- * the running game (which loads the raw model) is unaffected. Undoable.
+ * Toggle an entity's editor visibility — a dedicated editor-only flag the
+ * reconciler folds into the render projection. Distinct from a component's
+ * gameplay `enabled`: hiding never edits component data, so the running game
+ * (which loads the raw model) is unaffected. Undoable.
*/
setEntityVisible(sourceId: EntityId, visible: boolean): void {
if (!this.model.entityBySource(sourceId)) return;
@@ -684,8 +684,7 @@ export class SceneCommandsImpl {
);
}
- /** Lock/unlock an entity (UE5 actor lock) — editor-only; blocks viewport
- * picking/transform. Undoable. */
+ /** Lock/unlock an entity — editor-only; blocks viewport picking/transform. Undoable. */
setEntityLocked(sourceId: EntityId, locked: boolean): void {
if (!this.model.entityBySource(sourceId)) return;
const before = this.model.isLocked(sourceId);
diff --git a/desktop/src/engine/SceneModel.ts b/desktop/src/engine/SceneModel.ts
index 5bd7a56df..798111f23 100644
--- a/desktop/src/engine/SceneModel.ts
+++ b/desktop/src/engine/SceneModel.ts
@@ -25,8 +25,8 @@ export type ModelEvent =
| { kind: 'folderChanged'; sourceId: number }
// The scene's explicit-folder set changed (create/rename/delete of a folder).
| { kind: 'foldersChanged' }
- // An entity's editor visibility (`bHiddenInEditor`) changed — the reconciler
- // folds it into the render projection; it never touches component data.
+ // An entity's editor visibility changed — the reconciler folds it into the
+ // render projection; it never touches component data.
| { kind: 'hiddenChanged'; sourceId: number }
// An entity's editor lock changed — pure editor state (picking/selection only).
| { kind: 'lockChanged'; sourceId: number }
@@ -320,7 +320,7 @@ export class SceneModelImpl {
this.emit({ kind: 'foldersChanged' });
}
- // ── Editor visibility / lock (per-entity, editor-only — UE5 bHiddenInEditor) ──
+ // ── Editor visibility / lock (per-entity, editor-only) ───────────────────────
// Like `folder`: an editor-only per-entity field, lossless, never a World
// component. `hidden` the reconciler folds into the render projection (without
// touching the component's gameplay `enabled`, so play — which loads the raw
diff --git a/desktop/src/engine/SceneQuery.ts b/desktop/src/engine/SceneQuery.ts
index 4d5ad05a6..6f7484fa7 100644
--- a/desktop/src/engine/SceneQuery.ts
+++ b/desktop/src/engine/SceneQuery.ts
@@ -39,8 +39,8 @@ export function buildSceneTree(data: SceneData | null): SceneNode[] {
const build = (e: SceneEntity): SceneNode => {
const kind = modelKindOf(e);
const kids = childrenOf.get(e.id)?.map(build);
- // `visible`/`locked` are editor-only per-entity flags (UE5 bHiddenInEditor /
- // actor lock), distinct from any component's gameplay `enabled`.
+ // `visible`/`locked` are editor-only per-entity flags, distinct from any
+ // component's gameplay `enabled`.
const flags = e as { hidden?: boolean; locked?: boolean };
return {
id: e.id,
diff --git a/desktop/src/outliner/OutlinerModel.ts b/desktop/src/outliner/OutlinerModel.ts
index f071bea54..0c7ee2ca5 100644
--- a/desktop/src/outliner/OutlinerModel.ts
+++ b/desktop/src/outliner/OutlinerModel.ts
@@ -4,9 +4,9 @@
* @file OutlinerModel.ts — the ONE outliner tree builder.
*
* Flattens a SceneData into a render-ordered list of {@link OutlinerItem}s — a
- * tagged union of `entity` and `folder` rows (UE5 path-folders) — honoring the
- * expansion set (keyed by stable string item keys) + a name filter. The same
- * builder feeds the editor tree and the always-expanded PIE "Game" tree.
+ * tagged union of `entity` and `folder` rows — honoring the expansion set (keyed
+ * by stable string item keys) + a name filter. The same builder feeds the editor
+ * tree and the always-expanded live "Game" tree.
*
* Folders are organizational PATHS (orthogonal to the transform `parent`): they
* group **root** entities only; a parented entity always nests under its parent.
@@ -62,7 +62,7 @@ export interface BuildOutlinerOpts {
expanded: ReadonlySet<string>;
/** Sibling sort mode (default `manual` = scene order). */
sort?: SortMode;
- /** A root entity's folder path (`""` = scene root). Absent ⇒ no folders (PIE). */
+ /** A root entity's folder path (`""` = scene root). Absent ⇒ no folders (live game). */
folderOf?: (id: EntityId) => string;
/** A folder's manual sort position (drag-placed); absent ⇒ default (top of level). */
folderOrderOf?: (path: string) => number | undefined;
@@ -70,7 +70,7 @@ export interface BuildOutlinerOpts {
folders?: readonly string[];
/** Free-text name filter; matches + their ancestors survive (case-insensitive). */
query?: string;
- /** Render every node expanded — the PIE tree, and implicitly while filtering. */
+ /** Render every node expanded — the live-game tree, and implicitly while filtering. */
expandAll?: boolean;
}
diff --git a/desktop/src/outliner/OutlinerRow.tsx b/desktop/src/outliner/OutlinerRow.tsx
index 401723597..065c970ed 100644
--- a/desktop/src/outliner/OutlinerRow.tsx
+++ b/desktop/src/outliner/OutlinerRow.tsx
@@ -1,15 +1,15 @@
// SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
- * @file OutlinerRow.tsx — the ONE outliner row, shared by the editor + PIE trees.
+ * @file OutlinerRow.tsx — the ONE outliner row, shared by the editor + live-game trees.
*
* Purely presentational: selection / rename / drop / prefab state arrive as props
* (it does NOT subscribe to any store), so with virtualization only the ~window of
* visible rows ever renders or re-renders. The Name/tree part (twist + icon +
* name) is fixed; the trailing cells come from the {@link OutlinerColumn} registry
* — a column renders its cell, or an aligned spacer where it doesn't apply, so
- * columns line up across entity + folder rows. The PIE tree passes a read-only
- * column set and no edit handlers.
+ * columns line up across entity + folder rows. The live-game tree passes a
+ * read-only column set and no edit handlers.
*/
import type React from 'react';
import { Fragment } from 'react';
@@ -46,7 +46,7 @@ export interface OutlinerRowProps {
dropPos?: 'before' | 'on' | 'after';
/** Prefab-instance member — warm icon tint (entity rows only). */
prefab?: boolean;
- /** When false, the twist is hidden + non-interactive (the always-expanded PIE tree). */
+ /** When false, the twist is hidden + non-interactive (the always-expanded live-game tree). */
collapsible?: boolean;
/** Trailing columns to render after the name (the column registry). */
columns: OutlinerColumn[];
diff --git a/desktop/src/outliner/columns.tsx b/desktop/src/outliner/columns.tsx
index 77b68104a..9e50277ec 100644
--- a/desktop/src/outliner/columns.tsx
+++ b/desktop/src/outliner/columns.tsx
@@ -1,13 +1,13 @@
// SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
- * @file columns.tsx — the outliner's pluggable column registry (UE5
- * ISceneOutlinerColumn). The Name/tree column is fixed (twist + icon +
- * name, owned by OutlinerRow); every TRAILING column — Type, Lock,
- * Visibility — is a descriptor here, so the row + header strip render from
- * data and columns can be shown/hidden (and new ones added) without
- * touching the row. A column renders a cell per item, or an aligned spacer
- * where it doesn't apply (so the columns line up across entity/folder rows).
+ * @file columns.tsx — the outliner's pluggable column registry.
+ *
+ * The Name/tree column is fixed (twist + icon + name, owned by OutlinerRow); every
+ * TRAILING column — Type, Lock, Visibility — is a descriptor here, so the row +
+ * header strip render from data and columns can be shown/hidden (and new ones
+ * added) without touching the row. A column renders a cell per item, or an aligned
+ * spacer where it doesn't apply, so the columns line up across entity/folder rows.
*/
import type { ReactNode } from 'react';
import { Eye, EyeOff, Lock, LockOpen } from 'lucide-react';
diff --git a/desktop/src/outliner/folders.ts b/desktop/src/outliner/folders.ts
index 9f42b26a7..0d57b346b 100644
--- a/desktop/src/outliner/folders.ts
+++ b/desktop/src/outliner/folders.ts
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
- * @file folders.ts — outliner folder-path helpers (UE5 path-folders).
+ * @file folders.ts — outliner folder-path helpers.
*
* A folder is a slash-delimited PATH ("Enemies/Bosses"), not an entity — it
* organizes the outliner without touching the ECS/transform/gameplay (orthogonal
diff --git a/desktop/src/panels/Outliner.tsx b/desktop/src/panels/Outliner.tsx
index bfbc4322b..d3fd42af7 100644
--- a/desktop/src/panels/Outliner.tsx
+++ b/desktop/src/panels/Outliner.tsx
@@ -26,7 +26,7 @@ const NO_EXPANSION: ReadonlySet<string> = new Set();
const entityIds = (items: OutlinerItem[]): EntityId[] =>
items.filter((i): i is Extract<OutlinerItem, { kind: 'entity' }> => i.kind === 'entity').map((i) => i.id);
-// One row of the live "Game" tree (UE5 PIE world): a read-only, always-expanded
+// One row of the live "Game" tree: a read-only, always-expanded
// view of the running realm, sharing the editor's virtualization. No folders.
function GameTree() {
const { snapshot, selection } = useSyncExternalStore(PlayInspect.subscribe, PlayInspect.getSnapshot);
@@ -306,7 +306,7 @@ export function Outliner() {
};
// Create a uniquely-named folder (optionally moving a selection into it), reveal
- // it, and drop straight into rename — the UE5 "New Folder" gesture.
+ // it, and drop straight into rename.
const newFolder = (parent: string, into: EntityId[] | null) => {
const existing = new Set(SceneModel.sceneFolders());
let path = joinFolder(parent, 'New Folder');
@@ -450,7 +450,7 @@ export function Outliner() {
const ctxItems: MenuItem[] = useMemo(() => {
if (!ctx) return [];
if (!ctx.item) {
- // Empty-space (scene) menu — UE5 right-click-in-the-void.
+ // Empty-space (scene) menu.
return [
{ label: 'Add Entity', onClick: addEntity },
{ label: 'New Folder', onClick: () => newFolder('', null) },
@@ -509,7 +509,7 @@ export function Outliner() {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ctx]);
- // While playing, a UE5-style world picker switches the outliner (+ Details)
+ // While playing, a world picker switches the outliner (+ Details)
// between the edit scene and the live running game.
const gameMode = inspectWorld === 'game';
diff --git a/desktop/tests/inspector-model.test.ts b/desktop/tests/inspector-model.test.ts
index 7d356fda9..3e73f903f 100644
--- a/desktop/tests/inspector-model.test.ts
+++ b/desktop/tests/inspector-model.test.ts
@@ -517,7 +517,7 @@ describe('Advanced fields (D5)', () => {
});
});
-describe('Editor visibility / lock (UE5 bHiddenInEditor + actor lock) + batch undo', () => {
+describe('Editor visibility / lock (editor-only flags) + batch undo', () => {
const TF = { position: { x: 0, y: 0, z: 0 }, rotation: { w: 1, x: 0, y: 0, z: 0 }, scale: { x: 1, y: 1, z: 1 } };
it('outliner visibility/lock = editor flags, decoupled from component enabled', () => {
diff --git a/desktop/tests/outliner-columns.test.ts b/desktop/tests/outliner-columns.test.ts
index f87ed42c2..a5b2e0fcd 100644
--- a/desktop/tests/outliner-columns.test.ts
+++ b/desktop/tests/outliner-columns.test.ts
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
- * @file Outliner column registry (REARCH_OUTLINER P5 — UE5 ISceneOutlinerColumn).
- * The trailing columns are descriptors; `applies` gates per-item cells so
+ * @file Outliner column registry. The trailing columns are descriptors;
+ * `applies` gates per-item cells so
* entity-only columns (lock/vis) render an aligned spacer on folder rows.
*/
import { describe, it, expect } from 'vitest';
diff --git a/desktop/tests/outliner-controller.test.ts b/desktop/tests/outliner-controller.test.ts
index 46ac9a99d..9027d3848 100644
--- a/desktop/tests/outliner-controller.test.ts
+++ b/desktop/tests/outliner-controller.test.ts
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
- * @file OutlinerController — the outliner's headless view-state (REARCH_OUTLINER
- * P1/P2/P4). String-keyed expansion + cursor + reveal, model-anchored. Pure
+ * @file OutlinerController — the outliner's headless view-state.
+ * String-keyed expansion + cursor + reveal, model-anchored. Pure
* store over a model (no World), so it's unit-testable headless.
*/
import { describe, it, expect, beforeEach } from 'vitest';
diff --git a/desktop/tests/outliner-folders.test.ts b/desktop/tests/outliner-folders.test.ts
index 387bbb14c..b0956e03e 100644
--- a/desktop/tests/outliner-folders.test.ts
+++ b/desktop/tests/outliner-folders.test.ts
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
- * @file Outliner path-folders (REARCH_OUTLINER.md P2). Folders are organizational
+ * @file Outliner path-folders. Folders are organizational
* PATHS — a per-entity `folder` field + a scene-level explicit-folder list,
* orthogonal to the transform `parent`, lossless through save. Covers the
* pure path grammar, the undoable folder commands, and the serialize
diff --git a/desktop/tests/outliner-model.test.ts b/desktop/tests/outliner-model.test.ts
index 24c12f9ba..09112904b 100644
--- a/desktop/tests/outliner-model.test.ts
+++ b/desktop/tests/outliner-model.test.ts
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
- * @file buildOutlinerItems — the ONE outliner tree builder (REARCH_OUTLINER.md).
+ * @file buildOutlinerItems — the ONE outliner tree builder.
* Flattens a SceneData to render-ordered rows (entity | folder) honoring a
* string-keyed expansion set + a name filter; folders group ROOT entities
* by path (orthogonal to the transform `parent`). Pure projection.
@@ -48,7 +48,7 @@ describe('buildOutlinerItems — entities', () => {
expect(byKey.get('e5')).toMatchObject({ depth: 1, parentKey: 'e1' });
});
- it('expandAll renders the whole tree regardless of expansion (PIE)', () => {
+ it('expandAll renders the whole tree regardless of expansion (the live game tree)', () => {
expect(keys(buildOutlinerItems(scene(), { expanded: new Set(), expandAll: true }))).toEqual(['e1', 'e2', 'e3', 'e5']);
});
diff --git a/desktop/tests/outliner-reorder.test.ts b/desktop/tests/outliner-reorder.test.ts
index 625a64fe0..080389915 100644
--- a/desktop/tests/outliner-reorder.test.ts
+++ b/desktop/tests/outliner-reorder.test.ts
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
- * @file Outliner sibling drag-reorder (REARCH_OUTLINER P4). Render order derives
+ * @file Outliner sibling drag-reorder. Render order derives
* from `data.entities` order; reorderEntity aligns parent+folder to the
* target then moves the entity adjacent, undoable. Model+command only.
*/