private void UpdateHoverHighlighting(IHighlightController oldTarget, IHighlightController newTarget) { oldTarget?.SetHighlightEnabled(false); if (newTarget == null) { return; } newTarget.SetHighlightColor(_highlightingColorSettings.OnHoveredColor); newTarget.SetHighlightEnabled(true); }
public void SetHighlightEnabled(bool state) { _highlightComponent.SetHighlightEnabled(state); }