No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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