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); } } } }
public BackupTab(TabbedEditorWindow window) : base("Backup", window) { registry = new UnityMemberInfoRegistry(); }