示例#1
0
 private void SetExcludes()
 {
     registry = new UnityMemberInfoRegistry();
     if (excludeDesc != null)
     {
         foreach (string l in excludeDesc.text.Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries))
         {
             string line = l.Trim();
             if (line.StartsWith("#"))
             {
                 continue;
             }
             int index = line.Trim().LastIndexOf('.');
             if (index > 0)
             {
                 string typeName = line.Substring(0, index);
                 string varName  = line.Substring(index + 1, line.Length - (index + 1));
                 registry.ExcludeField(typeName, varName);
             }
         }
     }
 }
示例#2
0
 public BackupTab(TabbedEditorWindow window) : base("Backup", window)
 {
     registry = new UnityMemberInfoRegistry();
 }