Class VersionControl
A collection of version control related helper utilities.
Inheritance
System.Object
VersionControl
Namespace: GDX.Editor
Syntax
public static class VersionControl
Methods
| Improve this Doc View SourceCheckoutFolder(String)
Synchronously checkout the contents of a folder if under source control known to Unity, and with it enabled.
Declaration
public static void CheckoutFolder(string folderPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | folderPath | The absolute path to the target folder. |
GetAssetListFromFolder(String, String, SearchOption)
Get an UnityEditor.VersionControl.AssetList from an absoluteDirectoryPath
.
Declaration
public static AssetList GetAssetListFromFolder(string absoluteDirectoryPath, string searchPattern = "*.*", SearchOption searchOption = SearchOption.AllDirectories)
Parameters
Type | Name | Description |
---|---|---|
System.String | absoluteDirectoryPath | A fully qualified path on disk to query. |
System.String | searchPattern | The search pattern to look for files with. |
System.IO.SearchOption | searchOption | What level of searching should be done. |
Returns
Type | Description |
---|---|
UnityEditor.VersionControl.AssetList | An UnityEditor.VersionControl.AssetList containing any valid assets under version control. |