How is the item selected? I do understand that it is on ‘mouseup’ but how does it get displayed in ‘inspector’ view and stays selected in ‘hierarchy’?
I can get the currently selected item with:
let lockedSelection = editor.selection.item // or editor.selection.items if there are multiple
But how would I go about setting the entity that I want. This is what I thought I had to do:
But that’s not it. Is there a specific event that I need to prevent from firing for the the selection to not change/or to fire an event to change back to lockedSelection?