暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

UnitPortDefinition.cs 728B

123456789101112131415161718192021
  1. namespace Unity.VisualScripting
  2. {
  3. public abstract class UnitPortDefinition : IUnitPortDefinition
  4. {
  5. [Serialize, Inspectable, InspectorDelayed]
  6. [WarnBeforeEditing("Edit Port Key", "Changing the key of this definition will break any existing connection to this port. Are you sure you want to continue?", null, "")]
  7. public string key { get; set; }
  8. [Serialize, Inspectable]
  9. public string label { get; set; }
  10. [Serialize, Inspectable, InspectorTextArea]
  11. public string summary { get; set; }
  12. [Serialize, Inspectable]
  13. public bool hideLabel { get; set; }
  14. [DoNotSerialize]
  15. public virtual bool isValid => !string.IsNullOrEmpty(key);
  16. }
  17. }