debugCommandFilter

This property is for debugging only; it is not for production use.

A function that determines what commands are executed. As shown in the examples below, the function receives the command's owner as an argument, and returns a boolean indicating if the command should be executed.

The default is undefined, indicating that all commands are executed.

// Do not execute any commands.
scene.debugCommandFilter = function(command) {
return false;
};

// Execute only the billboard's commands. That is, only draw the billboard.
const billboards = new BillboardCollection();
scene.debugCommandFilter = function(command) {
return command.owner === billboards;
};

See also