Ultimate Replay Scripting Reference
ReplayVariableInterpolateValue Method |
Attempts to interpolate the ReplayVariable value using the values from the last and next frame.
In order for interpolation to succeed, the last and next values must be of the same type.
Namespace: UltimateReplay.Core
Assembly: UltimateReplay (in UltimateReplay.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static Object InterpolateValue( Object last, Object next, float delta )
Parameters
- last
- Type: SystemObject
The value of the variable in the last frame - next
- Type: SystemObject
The value of the variable in the next frame - delta
- Type: SystemSingle
The normalized delta representing the progression from the last frame to the next frame
Return Value
Type: ObjectThe interpolated value result or null if interpolation is not supported for the type
See Also