virtual public string GetDisplayName(NPipeIImportable importable) { if (importable.GetInstanceName() != null && importable.GetInstanceName().Length > 0) { return(importable.GetInstanceName() + " (" + importable.GetTypeName() + ")"); } else { return(importable.GetTypeName()); } }
public static string GetPipelineDebugString(NPipeIImportable element, bool withTimes = false) { string prefix = ""; if (element is NPipeIComposite) { prefix = GetPipelineDebugString(((NPipeIComposite)element).Input, withTimes); } string cur = (!string.IsNullOrEmpty(element.GetInstanceName()) ? element.GetInstanceName() : element.GetTypeName()); if (withTimes) { cur += " (" + (int)(EditorApplication.timeSinceStartup - element.GetLastInvalidatedTime()) + ") "; } return(prefix + " / " + cur); }