Class Negate
Inverts the value of a boolean.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Logic")]
[UnitOrder(3)]
public sealed class Negate : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
input
The input boolean.
Declaration
[DoNotSerialize]
[PortLabel("X")]
public ValueInput input { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
output
True if the input is false, false if the input is true.
Declaration
[DoNotSerialize]
[PortLabel("~X")]
public ValueOutput output { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Operation(Flow)
Declaration
public bool Operation(Flow flow)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow |
Returns
| Type | Description |
|---|---|
| Boolean |