Class Comparison
Compares two inputs.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Logic")]
[UnitTitle("Comparison")]
[UnitShortTitle("Comparison")]
[UnitOrder(99)]
public sealed class Comparison : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
a
The first input.
Declaration
[DoNotSerialize]
public ValueInput a { get; }
Property Value
Type | Description |
---|---|
ValueInput |
aEqualToB
Whether A is equal to B.
Declaration
[DoNotSerialize]
[PortLabel("A = B")]
public ValueOutput aEqualToB { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
aGreaterThanOrEqualToB
Whether A is greater than or equal to B.
Declaration
[DoNotSerialize]
[PortLabel("A ≥ B")]
public ValueOutput aGreaterThanOrEqualToB { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
aGreatherThanB
Whether A is greater than B.
Declaration
[DoNotSerialize]
[PortLabel("A > B")]
public ValueOutput aGreatherThanB { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
aLessThanB
Whether A is less than B.
Declaration
[DoNotSerialize]
[PortLabel("A < B")]
public ValueOutput aLessThanB { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
aLessThanOrEqualToB
Whether A is less than or equal to B.
Declaration
[DoNotSerialize]
[PortLabel("A ≤ B")]
public ValueOutput aLessThanOrEqualToB { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
aNotEqualToB
Whether A is not equal to B.
Declaration
[DoNotSerialize]
[PortLabel("A ≠ B")]
public ValueOutput aNotEqualToB { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
b
The second input.
Declaration
[DoNotSerialize]
public ValueInput b { get; }
Property Value
Type | Description |
---|---|
ValueInput |
numeric
Whether the compared inputs are numbers.
Declaration
[Serialize]
[Inspectable]
public bool numeric { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Definition()
Declaration
protected override void Definition()