Version: 2021.2
LanguageEnglish
  • C#

VersionControlAttribute

class in UnityEditor.VersionControl

Suggest a change

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.

Close

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.

Close

Cancel

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

VCS object name must be unique within Unity project.

See Also: VersionControlObject, VersionControlManager, VersionControlDescriptor.

Properties

displayNameVersion control system display name.
nameVersion control system name.

Constructors

VersionControlAttributeConstructs VersionControlAttribute.