Protected_Protected_Protected Optional_Protected_ReadonlycomponentOptionaluiStaticAddStatic ReadonlyObjectStatic Optional ReadonlyOldStatic ReadonlyPluginStaticUserProtected_Protected_Optionalprefix: stringAdd a component to an object
Target object
Component state json or type string or component class
Optionalid: stringOptional component id, if not provided a random uuid will be generated
Undo/redo action, added component is in action.component
Optionalmeta: SerializationMetaTypeGet the first component of a specific type from the plugin instance
The component type (string or class)
The first component matching the specified type, or null if not found
Get all components of a specific type from the plugin instance
The component type (string or class)
Array of components matching the specified type
Optionalid: stringRemove a component from an object
OptionalsetOptionalmeta: SerializationMetaTypeStaticComponentsStaticGetStaticGetStaticGetStaticGetStaticGetStaticGetStaticObject
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.