API

Class CustomOptimization

Defines an optimization based on user defined callback.

Hierarchy (View Summary)

Index
onApply: (scene: Scene, optimizer: SceneOptimizer) => boolean

Callback called to apply the custom optimization.

onGetDescription: () => string

Callback called to get custom description

priority: number = 0

[0] Defines the priority of this optimization (0 by default which means first in the list)