ThreePipe
    Preparing search index...

    Class EntityComponentPlugin

    Entity Component Framework 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.

    This system is not documented at the moment.

    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,
            IGeometry<NormalBufferAttributes, BufferGeometryEventMap>
            | undefined,
            IMaterial<IMaterialEventMap> | IMaterial<IMaterialEventMap>[] | undefined,
        >,
        Object3DComponent[],
    > = ...
    OldPluginType?: string
    PluginType: "EntityComponentPlugin" = 'EntityComponentPlugin'
    UserDataKey: string = EntityComponentPlugin.PluginType

    Accessors

    Methods

    • Remove a component from an object

      Parameters

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