UnityGame/Library/PackageCache/com.unity.visualscripting/Runtime/VisualScripting.Flow/Ports/ValuePortDefinition.cs

28 lines
593 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
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;
}
}