Class BinaryComparisonUnit
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitCategory("Logic")]
public abstract class BinaryComparisonUnit : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
a
The first input.
Declaration
[DoNotSerialize]
public ValueInput a { get; }
Property Value
Type | Description |
---|---|
ValueInput |
b
The second input.
Declaration
[DoNotSerialize]
public ValueInput b { get; }
Property Value
Type | Description |
---|---|
ValueInput |
comparison
Declaration
[DoNotSerialize]
public virtual ValueOutput comparison { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
numeric
Whether the compared inputs are numbers.
Declaration
[Serialize]
[Inspectable]
[InspectorToggleLeft]
public bool numeric { get; set; }
Property Value
Type | Description |
---|---|
bool |
outputKey
Declaration
protected virtual string outputKey { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
GenericComparison(object, object)
Declaration
protected abstract bool GenericComparison(object a, object b)
Parameters
Type | Name | Description |
---|---|---|
object | a | |
object | b |
Returns
Type | Description |
---|---|
bool |
NumericComparison(float, float)
Declaration
protected abstract bool NumericComparison(float a, float b)
Parameters
Type | Name | Description |
---|---|---|
float | a | |
float | b |
Returns
Type | Description |
---|---|
bool |