mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 01:06:01 +08:00
Compatible with C# 4.0 language feature.
This commit is contained in:
parent
6cba54f3d4
commit
a3f1394078
@ -115,7 +115,7 @@ namespace XNodeEditor {
|
|||||||
foreach (var port in hoveredPort.GetConnections()) {
|
foreach (var port in hoveredPort.GetConnections()) {
|
||||||
var name = port.node.name;
|
var name = port.node.name;
|
||||||
var index = hoveredPort.GetConnectionIndex(port);
|
var index = hoveredPort.GetConnectionIndex(port);
|
||||||
contextMenu.AddItem(new GUIContent($"Disconnect({name})"), false, () => hoveredPort.Disconnect(index));
|
contextMenu.AddItem(new GUIContent(string.Format("Disconnect({0})", name)), false, () => hoveredPort.Disconnect(index));
|
||||||
}
|
}
|
||||||
contextMenu.AddItem(new GUIContent("Clear Connections"), false, () => hoveredPort.ClearConnections());
|
contextMenu.AddItem(new GUIContent("Clear Connections"), false, () => hoveredPort.ClearConnections());
|
||||||
//Get compatible nodes with this port
|
//Get compatible nodes with this port
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user