registerOnSelection, unregisterOnSelection

Register a callback function for a selection event in the tree or scene. The returned number is the ID of the listener which is required to unregister the callback.

Demo

  • Click to print item ID: Register/Unregister
  • Click to print all properties: Register/Unregister