Version: Unity 6 Preview (6000.0)
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.

Additional resources: VersionControlObject, VersionControlManager, VersionControlDescriptor.

Properties

displayNameVersion control system display name.
nameVersion control system name.

Constructors

VersionControlAttributeConstructs VersionControlAttribute.