Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / types / ParentLookup

Type Alias: ParentLookup

ts
type ParentLookup = {
  parentIdComponent: ParentId | null;
  parent: WorldEntityView | null;
};

Defined in: types.ts:132

Result of a parent lookup. parent is null for entities at the root or for entities without a ParentId component.

Properties

PropertyTypeDescriptionDefined in
parentIdComponentParentId | nullThe entity's ParentId component, or null if it has none.types.ts:134
parentWorldEntityView | nullThe resolved parent entity view, or null if the entity is at the root.types.ts:136