private void MouseClickDetected() { DCLBuilderInWorldEntity entityToSelect = builderInWorldEntityHandler.GetEntityOnPointer(); if (entityToSelect != null) { builderInWorldEntityHandler.EntityClicked(entityToSelect); } else if (!isMultiSelectionActive) { builderInWorldEntityHandler.DeselectEntities(); } }
public void CheckOutline() { if (outlinerOptimizationCounter >= 10 && isOutlineCheckActive) { if (!BuilderInWorldUtils.IsPointerOverUIElement()) { DCLBuilderInWorldEntity entity = builderInWorldEntityHandler.GetEntityOnPointer(); RemoveEntitiesOutsidePointerOrUnselected(); if (entity != null && !entity.IsSelected) { OutlineEntity(entity); } } outlinerOptimizationCounter = 0; } else { outlinerOptimizationCounter++; } }