# GetActivePlugin()

> Gets the current, user selected verson control Plugin.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.VersionControl](/engine/6000.5/script-reference/unityeditor/versioncontrol.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static Plugin GetActivePlugin()
```

### Returns

| Type                                                                           | Description |
| ------------------------------------------------------------------------------ | ----------- |
| [Plugin](/engine/6000.5/script-reference/unityeditor/versioncontrol/plugin.md) |             |

### Remarks

```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.VersionControl;
using UnityEngine;

public class EditorScript : MonoBehaviour
{
    [MenuItem("Version Control/GetActivePlugin")]
    public static void ExampleGetActivePlugin()
    {
        Plugin plugin;
        plugin = Provider.GetActivePlugin();
        Debug.Log(plugin.name);
    }
}
```

The code above fetches the name of the currently used version control system.
