Unity - Scripting API: VersionControl.Provider.GetActiveConfigFields
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public static ConfigField[] GetActiveConfigFields();
Description
Returns the configuration fields for the currently active version control plugin.
The task can be useful if, for example, you need to change the version control plugin's credentials.
The code above will fetch the currectly selected version control's config field names, change the first field to "username2" and update the version control settings.