Version: 2022.1

VersionControlAttribute

class in UnityEditor.VersionControl

切换到手册

描述

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 { }

VCS object name must be unique within Unity project.

See Also: VersionControlObject, VersionControlManager, VersionControlDescriptor.

变量

displayNameVersion control system display name.
nameVersion control system name.

构造函数

VersionControlAttributeConstructs VersionControlAttribute.