ThreePipe
    Preparing search index...

    Class EntityComponentPlugin

    Entity Component System plugin for threepipe. Allows attaching reusable components to IObject3D instances. Components can have their own serializable/runtime state, lifecycle methods, and update logic. Components are defined as classes extending Object3DComponent.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _dirty: boolean = false
    _running: boolean
    _viewer?: ThreeViewer
    _viewerListeners: PartialRecord<IViewerEventTypes, (e: IViewerEvent) => void> = {}
    componentTypes: Map<string, typeof Object3DComponent> = ...
    constructor: typeof AViewerPluginSync & typeof AViewerPlugin
    enabled: boolean = true
    isViewerPluginSync: true = ...
    uiConfig?: UiObjectConfig<any, string, any> = undefined
    AddObjectUiConfig: boolean = true
    ObjectToComponents: WeakMap<
        IObject3D<
            IObject3DEventMap,
            undefined
            | IGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
            undefined | IMaterial<IMaterialEventMap> | IMaterial<IMaterialEventMap>[],
        >,
        Object3DComponent[],
    > = ...
    OldPluginType?: string
    PluginType: "EntityComponentPlugin" = 'EntityComponentPlugin'
    UserDataKey: string = EntityComponentPlugin.PluginType

    Accessors

    Methods

    • Parameters

      Returns
          | undefined
          | {
              redo: () => void;
              state: undefined | null | Record<string, any>;
              undo: () => void;
          }