effect-motion
API ReferencethreeNamespacesSceneVariables

add

const add: {

Variable: add

const add: {
  (objects): (self) => Scene;
  (self, objects): Scene;
};

Defined in: packages/three/src/Scene.ts:124

Attach objects to the scene root.

Call Signature

(objects): (self) => Scene;

Parameters

ParameterType
objectsreadonly Object3D[]

Returns

(self) => Scene

Call Signature

(self, objects): Scene;

Parameters

ParameterType
selfScene
objectsreadonly Object3D[]

Returns

Scene

Remarks

Re-adding an object that is already parented moves it, as in three itself — an object has exactly one parent.

On this page