ComponentManager.duplicate() method
Duplicates the given component.
Signature:
duplicate<T extends Component3D>(component: T, opts?: CreateComponentOpts): Promise<T>;
Parameters
Parameter |
Type |
Description |
---|---|---|
component |
T | |
opts |
CreateComponentOpts |
(Optional) |
Promise<T>
a promise that resolves to the duplicated component.