ComponentManager class
A ComponentManager is a container for all the components of a space. It is responsible for creating, destroying and duplicating components.
Signature:
export declare class ComponentManager extends AugmentedGroup
Extends: AugmentedGroup
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ComponentManager
class.
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
Component3D<import("../../scripting").Component3DData>[] | ||
|
Promise<void> |
Methods
Method |
Modifiers |
Description |
---|---|---|
Returns a component by its id. | ||
Returns all components with matching name. | ||
Returns all component with matching tag. A tag is a string identifier that can be used to group components. | ||
Returns all components with matching type. | ||
create a new component of the given type. You can pass additional data that will be used to initialize the component. | ||
Removes the given component from the space. | ||
Duplicates the given component. | ||
Returns all components satisfying the given filter function. | ||
Returns the first component satisfying the given filter function. | ||
Iterates over all components and calls the given function for each one. | ||