Singularity/Library/PackageCache/com.unity.visualscripting@1.../Runtime/VisualScripting.Flow/Ports/ValuePortDefinition.cs
2024-05-06 11:45:45 -07:00

28 lines
593 B
C#

using System;
namespace Unity.VisualScripting
{
public abstract class ValuePortDefinition : UnitPortDefinition, IUnitValuePortDefinition
{
// For the virtual inheritors
[SerializeAs(nameof(_type))]
private Type _type { get; set; }
[Inspectable]
[DoNotSerialize]
public virtual Type type
{
get
{
return _type;
}
set
{
_type = value;
}
}
public override bool isValid => base.isValid && type != null;
}
}