# AssetList

> A list of version control information about assets.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.VersionControl](/engine/6000.6/script-reference/unityeditor/versioncontrol.md)
* **Assembly:** UnityEditor.CoreModule
* **Inherits from:** [List\<Asset>](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)
* **Implements:** [IList\<Asset>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1), [ICollection\<Asset>](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1), [IList](https://learn.microsoft.com/dotnet/api/system.collections.ilist), [ICollection](https://learn.microsoft.com/dotnet/api/system.collections.icollection), [IReadOnlyList\<Asset>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1), [IReadOnlyCollection\<Asset>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1), [IEnumerable\<Asset>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable)

```csharp
public class AssetList : List<Asset>, IList<Asset>, ICollection<Asset>, IList, ICollection, IReadOnlyList<Asset>, IReadOnlyCollection<Asset>, IEnumerable<Asset>, IEnumerable
```

## Methods

| Method                                                                                                   | Description                                                                                                               |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [Filter](/engine/6000.6/script-reference/unityeditor/versioncontrol/assetlist/filter.md)                 | Based on the current list and the states a new list is returned which only contains the assets with the requested states. |
| [FilterChildren](/engine/6000.6/script-reference/unityeditor/versioncontrol/assetlist/filterchildren.md) | Create an optimised list of assets by removing children of folders in the same list.                                      |
| [FilterCount](/engine/6000.6/script-reference/unityeditor/versioncontrol/assetlist/filtercount.md)       | Count the list of assets by given a set of states.                                                                        |

## Inheritance

**Inherited Members:**

* [List\<Asset>.Add(Asset)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.add)
* [List\<Asset>.AddRange(IEnumerable\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.addrange)
* [List\<Asset>.AsReadOnly()](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.asreadonly)
* [List\<Asset>.BinarySearch(int, int, Asset, IComparer\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.binarysearch#system-collections-generic-list-1-binarysearch\(system-int32-system-int32-0-system-collections-generic-icomparer\(\(-0\)\)\))
* [List\<Asset>.BinarySearch(Asset)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.binarysearch#system-collections-generic-list-1-binarysearch\(-0\))
* [List\<Asset>.BinarySearch(Asset, IComparer\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.binarysearch#system-collections-generic-list-1-binarysearch\(-0-system-collections-generic-icomparer\(\(-0\)\)\))
* [List\<Asset>.Clear()](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.clear)
* [List\<Asset>.Contains(Asset)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.contains)
* [List\<Asset>.ConvertAll\<T>(Converter\<Asset, T>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.convertall)
* [List\<Asset>.CopyTo(Asset\[\])](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.copyto#system-collections-generic-list-1-copyto\(-0\(\)\))
* [List\<Asset>.CopyTo(int, Asset\[\], int, int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.copyto#system-collections-generic-list-1-copyto\(system-int32-0\(\)-system-int32-system-int32\))
* [List\<Asset>.CopyTo(Asset\[\], int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.copyto#system-collections-generic-list-1-copyto\(-0\(\)-system-int32\))
* [List\<Asset>.EnsureCapacity(int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.ensurecapacity)
* [List\<Asset>.Exists(Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.exists)
* [List\<Asset>.Find(Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.find)
* [List\<Asset>.FindAll(Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.findall)
* [List\<Asset>.FindIndex(Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.findindex#system-collections-generic-list-1-findindex\(system-predicate\(\(-0\)\)\))
* [List\<Asset>.FindIndex(int, Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.findindex#system-collections-generic-list-1-findindex\(system-int32-system-predicate\(\(-0\)\)\))
* [List\<Asset>.FindIndex(int, int, Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.findindex#system-collections-generic-list-1-findindex\(system-int32-system-int32-system-predicate\(\(-0\)\)\))
* [List\<Asset>.FindLast(Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.findlast)
* [List\<Asset>.FindLastIndex(Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.findlastindex#system-collections-generic-list-1-findlastindex\(system-predicate\(\(-0\)\)\))
* [List\<Asset>.FindLastIndex(int, Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.findlastindex#system-collections-generic-list-1-findlastindex\(system-int32-system-predicate\(\(-0\)\)\))
* [List\<Asset>.FindLastIndex(int, int, Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.findlastindex#system-collections-generic-list-1-findlastindex\(system-int32-system-int32-system-predicate\(\(-0\)\)\))
* [List\<Asset>.ForEach(Action\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.foreach)
* [List\<Asset>.GetEnumerator()](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.getenumerator)
* [List\<Asset>.GetRange(int, int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.getrange)
* [List\<Asset>.Slice(int, int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.slice)
* [List\<Asset>.IndexOf(Asset)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.indexof#system-collections-generic-list-1-indexof\(-0\))
* [List\<Asset>.IndexOf(Asset, int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.indexof#system-collections-generic-list-1-indexof\(-0-system-int32\))
* [List\<Asset>.IndexOf(Asset, int, int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.indexof#system-collections-generic-list-1-indexof\(-0-system-int32-system-int32\))
* [List\<Asset>.Insert(int, Asset)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.insert)
* [List\<Asset>.InsertRange(int, IEnumerable\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.insertrange)
* [List\<Asset>.LastIndexOf(Asset)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.lastindexof#system-collections-generic-list-1-lastindexof\(-0\))
* [List\<Asset>.LastIndexOf(Asset, int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.lastindexof#system-collections-generic-list-1-lastindexof\(-0-system-int32\))
* [List\<Asset>.LastIndexOf(Asset, int, int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.lastindexof#system-collections-generic-list-1-lastindexof\(-0-system-int32-system-int32\))
* [List\<Asset>.Remove(Asset)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.remove)
* [List\<Asset>.RemoveAll(Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.removeall)
* [List\<Asset>.RemoveAt(int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.removeat)
* [List\<Asset>.RemoveRange(int, int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.removerange)
* [List\<Asset>.Reverse()](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.reverse#system-collections-generic-list-1-reverse)
* [List\<Asset>.Reverse(int, int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.reverse#system-collections-generic-list-1-reverse\(system-int32-system-int32\))
* [List\<Asset>.Sort()](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.sort#system-collections-generic-list-1-sort)
* [List\<Asset>.Sort(IComparer\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.sort#system-collections-generic-list-1-sort\(system-collections-generic-icomparer\(\(-0\)\)\))
* [List\<Asset>.Sort(int, int, IComparer\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.sort#system-collections-generic-list-1-sort\(system-int32-system-int32-system-collections-generic-icomparer\(\(-0\)\)\))
* [List\<Asset>.Sort(Comparison\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.sort#system-collections-generic-list-1-sort\(system-comparison\(\(-0\)\)\))
* [List\<Asset>.ToArray()](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.toarray)
* [List\<Asset>.TrimExcess()](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.trimexcess)
* [List\<Asset>.TrueForAll(Predicate\<Asset>)](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.trueforall)
* [List\<Asset>.Capacity()](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.capacity)
* [List\<Asset>.Count()](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1.count)
* [List\<Asset>.Item(int)](https://learn.microsoft.com/dotnet/api/system.int32)
