UnityGame/Library/PackageCache/com.unity.visualscripting/Runtime/VisualScripting.Flow/Framework/Nulls/Null.cs

21 lines
487 B
C#
Raw Normal View History

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