These are chat archives for highfidelity/hifi

5th
Oct 2014
Thijs Wenker
@thoys
Oct 05 2014 21:31
too many overlays? use the following script :wink: :
function mousePressEvent(event) {
    var clickedOverlay = Overlays.getOverlayAtPoint({x: event.x, y: event.y});
    if (clickedOverlay != 0) {
        Overlays.deleteOverlay(clickedOverlay);
    }
}
Controller.mousePressEvent.connect(mousePressEvent);