Version: 2021.3
public string displayName ;

描述

Version control system display name.

Can be localized. Used in UI.

using UnityEditor.VersionControl;
using UnityEngine;

public class CustomVersionControlAttribute : VersionControlAttribute { static string GetDisplayName() { return $"Custom ({Application.systemLanguage})"; }

public CustomVersionControlAttribute() : base("Custom", GetDisplayName()) { } }

[CustomVersionControl] public class CustomVersionControlObject : VersionControlObject { }