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