Class Round<TInput, TOutput>
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitOrder(202)]
public abstract class Round<TInput, TOutput> : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Type Parameters
| Name | Description |
|---|---|
| TInput | |
| TOutput |
Properties
input
The value to round.
Declaration
[DoNotSerialize]
public ValueInput input { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
output
The rounded value.
Declaration
[DoNotSerialize]
public ValueOutput output { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
rounding
The rounding mode.
Declaration
[Inspectable]
[UnitHeaderInspectable]
[Serialize]
public Round<TInput, TOutput>.Rounding rounding { get; set; }
Property Value
| Type | Description |
|---|---|
| Round<TInput, TOutput>.Rounding |
Methods
AwayFromZero(TInput)
Declaration
protected abstract TOutput AwayFromZero(TInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| TInput | input |
Returns
| Type | Description |
|---|---|
| TOutput |
Ceiling(TInput)
Declaration
protected abstract TOutput Ceiling(TInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| TInput | input |
Returns
| Type | Description |
|---|---|
| TOutput |
Definition()
Declaration
protected override void Definition()
Overrides
Floor(TInput)
Declaration
protected abstract TOutput Floor(TInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| TInput | input |
Returns
| Type | Description |
|---|---|
| TOutput |
Operation(Flow)
Declaration
public TOutput Operation(Flow flow)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow |
Returns
| Type | Description |
|---|---|
| TOutput |