Class NullCoalesce
Provides a fallback value if the input value is null.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Nulls")]
[TypeIcon(typeof(Null))]
public sealed class NullCoalesce : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
fallback
The fallback to use if the value is null.
Declaration
[DoNotSerialize]
public ValueInput fallback { get; }
Property Value
Type | Description |
---|---|
ValueInput |
input
The value.
Declaration
[DoNotSerialize]
public ValueInput input { get; }
Property Value
Type | Description |
---|---|
ValueInput |
result
The returned value.
Declaration
[DoNotSerialize]
public ValueOutput result { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Coalesce(Flow)
Declaration
public object Coalesce(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
Object |
Definition()
Declaration
protected override void Definition()