Unity - Scripting API: VersionControlAttribute
class in UnityEditor.VersionControl
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.
Description
Allows you to mark a class as a version control system object.
This attribute enables Unity to detect custom VCS implementations. Your VCS object must also derive from VersionControlObject.
using UnityEditor.VersionControl;[VersionControl("Custom")] public class CustomVersionControlObject : VersionControlObject { }
Properties
| Property | Description |
|---|---|
| displayName | Version control system display name. |
| name | Version control system name. |