For a project I'm working on, when the user deletes a component I would like for the face underneath that component to also be deleted.
I am trying to use the onEraseEntity observer, which I have placed on the component, to look at the location of the entity being erased and then find the plane at that position. The issue is that the onEraseEntity observer returns a Deleted Entity rather than a Entity object. The Deleted Entity appears to not store any of the attributes of the entity, including its location.
Any ideas on how to get around this issue? Is there a onBeforeEraseEntity observer somewhere out there?
Thanks!