Skip to content

API Function registerComponentAlias

github-actions[bot] edited this page Nov 28, 2026 · 5 revisions

Function: registerComponentAlias()

function registerComponentAlias(oldId, newId): () => void;

Defined in: src/engine/core/registry.ts:353

Read the component id oldId as newId (ADR 0439): scenes, prefabs and prefab overrides that name the old id load the class registered under the new one, and documents are written with the new id. For renamed components; registering the same alias again is harmless. Returns the undo.

Parameters

oldId

string

newId

string

Returns

() => void

Clone this wiki locally