public void ToggleHoverOutline(InteractiveElement element = null) { foreach (var item in _materialDictionary) { foreach (var i in item.Value) { var toHover = i.Item1 == element && element.CanBeSelected(); i.Item2.SetColor(Constants.ColorShaderProperty, toHover ? hoverColor : Color.clear); i.Item2.SetFloat(Constants.EnabledShaderProperty, toHover ? 1f : 0f); } } }