public static void StopPartDetection() { partDetectionActive = false; if (hoveredPart && delegateOnMouseExitPart != null) { delegateOnMouseExitPart(hoveredPart); } if (hoveredPart != null) { KIS_Shared.SetHierarchySelection(hoveredPart, false /* isSelected */); } hoveredPart = null; }