Exemple #1
0
        private void UpdateHoverHighlighting(IHighlightController oldTarget, IHighlightController newTarget)
        {
            oldTarget?.SetHighlightEnabled(false);

            if (newTarget == null)
            {
                return;
            }
            newTarget.SetHighlightColor(_highlightingColorSettings.OnHoveredColor);
            newTarget.SetHighlightEnabled(true);
        }
Exemple #2
0
 public void SetHighlightColor(Color color)
 {
     _highlightComponent.SetHighlightColor(color);
 }