TL;DR: Please give us documentation on every IPC event that is broadcast by the editor.
It is documented here: Introduction to IPC that in scripts we can broadcast and listen to IPC messages to send messages between panels. This is based on the Electron framework, and works well for extensions.
However, for building more advanced extensions, it would be very nice to be able to listen to the events created by the editor itself. For example, let’s say my extension needs to import assets into the project assets folder. As documented in the old 0.71 API reference, we can use code like this:
Editor.assetdb.import( [
‘/file/to/import/01.png’,
‘/file/to/import/02.png’,
‘/file/to/import/03.png’,
], ‘db://assets/foobar’ );
But how do I know when it is done importing? Or even if it was successful or failed? There is no callback function.
Probably, the editor broadcasts events on certain channels over IPC. Like in the above example maybe “Assets:Created”. If we could have a list of all editor broadcast events that we can listen to, that would make it much easier to extend the editor.
Thanks.