using UnityObject = UnityEngine.Object;
namespace Unity.VisualScripting
{
///
/// Provides a fallback value if the input value is null.
///
[UnitCategory("Nulls")]
[TypeIcon(typeof(Null))]
public sealed class NullCoalesce : Unit
{
///
/// The value.
///
[DoNotSerialize]
public ValueInput input { get; private set; }
///
/// The fallback to use if the value is null.
///
[DoNotSerialize]
public ValueInput fallback { get; private set; }
///
/// The returned value.
///
[DoNotSerialize]
[PortLabelHidden]
public ValueOutput result { get; private set; }
protected override void Definition()
{
input = ValueInput