Show the scene's display and update lists (v3)


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

#2

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


#3

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