VersionControlAttribute
Allows you to mark a class as a version control system object.
Read time 3 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEditor.VersionControl
- Assembly: UnityEditor.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class)]public class VersionControlAttribute : Attribute
Remarks
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{}
VCS object VersionControlAttribute.name must be unique within Unity project.
Constructors
Constructor | Description |
|---|---|
| VersionControlAttribute(System.String,System.String) | Constructs VersionControlAttribute. |
Properties
Property | Description |
|---|---|
| displayName | Version control system display name. |
| name | Version control system name. |