public ConnectionData(ConnectionGUI c) { m_id = c.Id; m_label = c.Label; m_fromNodeId = c.OutputNodeId; m_fromNodeConnectionPointId = c.OutputPoint.Id; m_toNodeId = c.InputNodeId; m_toNodeConnectionPoiontId = c.InputPoint.Id; }
public void UpdateInspector(ConnectionGUI con, Dictionary<string, List<Asset>> assetGroups) { this.connectionGUI = con; this.assetGroups = assetGroups; this.foldouts = new List<bool>(); if(assetGroups != null) { for (var i = 0; i < this.assetGroups.Count; i++) { foldouts.Add(true); } } }
internal override void OnContextMenuGUI(GenericMenu menu, ConnectionGUI connectionGUI) { base.OnContextMenuGUI(menu, connectionGUI); menu.AddItem( new GUIContent("Copy"), false, () => { copyed = connecton; } ); menu.AddItem( new GUIContent("Paste"), false, () => { if (copyed != null) { connecton.show = copyed.show; } } ); }
public ConnectionEvent(EventType type, ConnectionGUI con) { this.eventType = type; this.eventSourceCon = con; }