Show the scene's display and update lists (Phaser 3)

// From a scene:'update', function () {'Display List:');
  console.table(this.sys.displayList.list, [ 'name', 'type', 'x', 'y', 'visible', 'renderFlags', 'cameraFilter' ]);'Update List:');
  console.table(this.sys.updateList._list, [ 'name', 'type', 'active' ]);
}, this);

Nifty use of console.table. I didn’t know you could pick which fields you wanted to see!

1 Like

It’s a little quirky. Chrome doesn’t show visible at all. Firefox shows undefined for some properties.