Class Lerp<T>
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitOrder(501)]
public abstract class Lerp<T> : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
a
The first value.
Declaration
[DoNotSerialize]
public ValueInput a { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
b
The second value.
Declaration
[DoNotSerialize]
public ValueInput b { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
defaultA
Declaration
[DoNotSerialize]
protected virtual T defaultA { get; }
Property Value
| Type | Description |
|---|---|
| T |
defaultB
Declaration
[DoNotSerialize]
protected virtual T defaultB { get; }
Property Value
| Type | Description |
|---|---|
| T |
interpolation
The linear interpolation between A and B at T.
Declaration
[DoNotSerialize]
public ValueOutput interpolation { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
t
The interpolation value.
Declaration
[DoNotSerialize]
public ValueInput t { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Operation(T, T, float)
Declaration
public abstract T Operation(T a, T b, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| T | a | |
| T | b | |
| float | t |
Returns
| Type | Description |
|---|---|
| T |