Class: Culler

Culler

The Culler class is responsible for managing and culling containers. Culling is the process of removing objects that are not currently visible to the user, which can improve performance in large scenes.

new Culler ()

Members

shared static

A shared instance of the Culler class.

Methods

cull (container, view, skipUpdateTransform)

Culls the children of a specific container based on the given view. This will also cull items that are not being explicitly managed by the culler.

Name Type Default Description
container Container

The container to cull.

view RectangleLike

The view rectangle.

skipUpdateTransform boolean true

Whether to skip updating the transform.