Skip to content

Commit b0ab688

Browse files
committed
Revert "Improved port highlighting"
This reverts commit 26ba928. # Conflicts: # Editor/EventGraphWindow.cs
1 parent 5f76275 commit b0ab688

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Editor/EventGraphWindow.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ private void ClearHighlights()
405405
foreach (var kvp in _highlightedPorts)
406406
{
407407
kvp.Key.portColor = Color.white;
408-
kvp.Key.contentContainer.Q<Label>().style.color = Color.white;
409408
}
410409
_highlightedPorts.Clear();
411410
}
@@ -433,8 +432,6 @@ private void HighlightEventInGraph(EventData eventData, double duration = 1.0)
433432
{
434433
HighlightEdge(edge, duration);
435434

436-
HighlightPort(edge.input as UnityEventPort, duration);
437-
438435
var targetNode = edge.input.node as UnityEventNode;
439436
if (targetNode != null)
440437
{
@@ -496,7 +493,6 @@ private void OnEditorUpdate()
496493
foreach (var port in portsToReset)
497494
{
498495
port.portColor = Color.white;
499-
port.contentContainer.Q<Label>().style.color = Color.white;
500496
_highlightedPorts.Remove(port);
501497
}
502498
}
@@ -527,8 +523,6 @@ private void HighlightEdge(Edge edge, double duration = 1.0)
527523
private void HighlightPort(UnityEventPort port, double duration = 1.0)
528524
{
529525
port.portColor = Color.yellow;
530-
port.contentContainer.Q<Label>().style.color = Color.yellow;
531-
532526
double resetTime = EditorApplication.timeSinceStartup + duration;
533527

534528
if (!_highlightedPorts.ContainsKey(port) || _highlightedPorts[port] < resetTime)

0 commit comments

Comments
 (0)