override public bool DrawInspector(NPipeEditFlags flags) { bool changed = base.DrawInspector(flags); NPVoxIModelFactory modelFactory = Input as NPVoxIModelFactory; if (modelFactory != null) { string[] socketNames = modelFactory.GetProduct().SocketNames; if (socketNames == null || socketNames.Length == 0) { GUILayout.Label("No Socket"); } else { string newSocketName = NPipeGUILayout.Toolbar(socketNames, socketNames, SocketName); if (SocketName != newSocketName) { SocketName = newSocketName; changed = true; } } } if (changed && (string.IsNullOrEmpty(InstanceName) || InstanceName.StartsWith("SocketT "))) { InstanceName = "SocketT " + SocketName; } return(changed); }