effect-motion
API ReferencethreeNamespacesSceneFunctions

isEmpty

function isEmpty(self): boolean;

Function: isEmpty()

function isEmpty(self): boolean;

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

Whether the scene root has no children.

Parameters

ParameterType
selfScene

Returns

boolean

Remarks

The "is there anything to draw" check — worth making before an optional pass, so an empty overlay tier costs nothing.

On this page