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

21 lines
487 B
C#

namespace Unity.VisualScripting
{
/// <summary>
/// Returns a null value.
/// </summary>
[UnitCategory("Nulls")]
public sealed class Null : Unit
{
/// <summary>
/// A null value.
/// </summary>
[DoNotSerialize]
public ValueOutput @null { get; private set; }
protected override void Definition()
{
@null = ValueOutput<object>(nameof(@null), (recursion) => null).Predictable();
}
}
}