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

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