Class MoveTowards<T>
Inheritance
MoveTowards<T>
Syntax
[UnitOrder(502)]
public abstract class MoveTowards<T> : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Type Parameters
Properties
current
Declaration
[DoNotSerialize]
public ValueInput current { get; }
Property Value
defaultCurrent
Declaration
[DoNotSerialize]
protected virtual T defaultCurrent { get; }
Property Value
defaultTarget
Declaration
[DoNotSerialize]
protected virtual T defaultTarget { get; }
Property Value
maxDelta
The maximum scalar increment between values.
Declaration
[DoNotSerialize]
public ValueInput maxDelta { get; }
Property Value
perSecond
Declaration
[Serialize]
[Inspectable]
[UnitHeaderInspectable("Per Second")]
[InspectorToggleLeft]
public bool perSecond { get; set; }
Property Value
result
Declaration
[DoNotSerialize]
public ValueOutput result { get; }
Property Value
target
Declaration
[DoNotSerialize]
public ValueInput target { get; }
Property Value
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Operation(T, T, Single)
Declaration
public abstract T Operation(T current, T target, float maxDelta)
Parameters
Type |
Name |
Description |
T |
current |
|
T |
target |
|
Single |
maxDelta |
|
Returns
Extension Methods