Ejemplo n.º 1
0
 virtual public string GetDisplayName(NPipeIImportable importable)
 {
     if (importable.GetInstanceName() != null && importable.GetInstanceName().Length > 0)
     {
         return(importable.GetInstanceName() + " (" + importable.GetTypeName() + ")");
     }
     else
     {
         return(importable.GetTypeName());
     }
 }
Ejemplo n.º 2
0
    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);
    }