Skip to content

@modoki/engine / index / EntityAttributes

Variable: EntityAttributes

const EntityAttributes: Trait<{ editorFolder: string; guid: string; isActive: boolean; layer: "" | "3d" | "2d" | "ui"; name: string; parentId: number; sortOrder: number; sourceScene: string; }>

EntityAttributes — metadata for any entity: display name and active state. isActive is the entity ON/OFF switch: when false, the entity AND all its descendants are skipped by systems, rendering, and game ticks (the child cascade is computed in transformPropagationSystemdeactivatedEntities). This is distinct from a renderable trait's isVisible, which hides only that one renderer; an entity draws a renderable iff the entity is active (incl. all ancestors) AND the trait is visible.

Built with Modoki.