If I have a Blockly workspace, how can I get the total number of blocks that are being used?
Asked
Active
Viewed 704 times
1 Answers
1
workspace.getAllBlocks(false).length
Docs: https://developers.google.com/blockly/reference/js/Blockly.Workspace#getAllBlocks

Neil Fraser
- 993
- 1
- 7
- 12