GetActivePlugin()
Gets the current, user selected verson control Plugin.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor.VersionControl
- Assembly: UnityEditor.CoreModule
public static Plugin GetActivePlugin()
Returns
Type | Description |
|---|---|
| Plugin |
Remarks
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.