Class ScalarMoveTowards
Moves a scalar towards a target.
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
[UnitCategory]
[UnitTitleAttribute]
public sealed class ScalarMoveTowards : MoveTowards<float>, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
defaultCurrent
Declaration
protected override float defaultCurrent { get; }
Property Value
| Type | Description |
|---|---|
| float |
Overrides
defaultTarget
Declaration
protected override float defaultTarget { get; }
Property Value
| Type | Description |
|---|---|
| float |
Overrides
Methods
Operation(float, float, float)
Declaration
public override float Operation(float current, float target, float maxDelta)
Parameters
| Type | Name | Description |
|---|---|---|
| float | current | |
| float | target | |
| float | maxDelta |
Returns
| Type | Description |
|---|---|
| float |
Overrides
Implements
IDisposable