Ultimate Replay Scripting Reference
ReplayVariable Class |
Represents a variable that can be recorded using the replay system in order to replay script animations or similar during playback.
Inheritance Hierarchy
Namespace: UltimateReplay.Core
Assembly: UltimateReplay (in UltimateReplay.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class ReplayVariable : IReplaySerialize
The ReplayVariable type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReplayVariable |
Create a new ReplayVariable.
|
Methods
Name | Description | |
---|---|---|
CanInterpolate |
Returns true if the specified type can be interpolated by the replay system.
| |
Interpolate |
Attempts to interpolate the ReplayVariable value using the values from the last and next frame.
| |
InterpolateByte |
Default interpolator for byte.
| |
InterpolateColor |
Default interpolator for Color.
| |
InterpolateColor32 |
Default interpolator for Color32.
| |
InterpolateDouble |
Default interpolator for double.
| |
InterpolateFloat |
Default interpolator for float.
| |
InterpolateInt |
Default interpolator for int.
| |
InterpolateLong |
Default interpolator for long.
| |
InterpolateQuat |
Default interpolator for Quaternion.
| |
InterpolateShort |
Default interpolator for short.
| |
InterpolateValue |
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.
| |
InterpolateVec2 |
Default interpolator for Vector2.
| |
InterpolateVec3 |
Default interpolator for Vector3.
| |
InterpolateVec4 |
Default interpolator for Vector4.
| |
OnReplayDeserialize |
Called by the replay system when the variable should be deserialized.
| |
OnReplaySerialize |
Called by the replay system when the variable should be serialized.
| |
RegisterCustomInterpolatorT |
Allows a custom interpolation method to be registered so that unsupported variable types can be interpolated automatically.
| |
UpdateValueRange |
Sets the current interpolation range for the ReplayVariable value.
|
Properties
Name | Description | |
---|---|---|
Attribute |
Get the ReplayVarAttribute associated with this ReplayVariable.
| |
gameObject |
Get the game object that this ReplayVariable is attached to.
| |
IsInterpolated |
Returns true if this ReplayVariable should be interpolated between frames.
| |
IsInterpolationSupported |
Returns true if this ReplayVariable supports interpolation.
Interpolation can only be supported if the variable type has a registered interpolator.
| |
Name |
Get the name of this ReplayVariable.
| |
Value |
The current value for this ReplayVariable.
|
See Also