public static HEU_Shelf AddShelf(string shelfName, string shelfPath) { if (_shelves.Find((HEU_Shelf shelf) => shelf._shelfName == shelfName) != null) { return null; } if (!HEU_AssetDatabase.IsValidFolderName(shelfName)) { return null; } HEU_Shelf newShelf = new HEU_Shelf(); newShelf._shelfName = shelfName; newShelf._shelfPath = shelfPath; _shelves.Add(newShelf); return newShelf; }