Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / ParentId

Class: ParentId ​

Defined in: components/ParentId.ts:11

Records the parent entity id for hierarchical scene graphs. null means the entity is at the world root. The ObjectManagementSystem reconciles scene-graph parenting from this component each frame.

Extends ​

Constructors ​

Constructor ​

ts
new ParentId(value?): ParentId;

Defined in: components/ParentId.ts:15

Parameters ​

ParameterTypeDefault value
valuenumber | nullnull

Returns ​

ParentId

Overrides ​

Component.constructor

Properties ​

PropertyTypeDescriptionDefined in
valuenumber | nullParent entity id, or null for root-level entities.components/ParentId.ts:13