ReplayVarAttribute Class

Ultimate Replay

ReplayVarAttribute Class
Use this attribute on a field to mark it for recording. The type the field is defined in must inheit from ReplayBehaviour in order for the field to be recorded automatically. Interpolation between field values is also possible where low record rates are used.
Inheritance Hierarchy
SystemObject  SystemAttribute
    UltimateReplayReplayVarAttribute

Namespace: UltimateReplay
Assembly: UltimateReplay (in UltimateReplay.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class ReplayVarAttribute : Attribute

The ReplayVarAttribute type exposes the following members.

Constructors
  NameDescription
Public methodReplayVarAttribute
Create a new ReplayVarAttribute for a field.
Top
Fields
  NameDescription
Public fieldinterpolate
Should the value of the field be interpolated between frames or should the value snap to the exact frame value. Most built-in types support interpolation such as Byte and Single. Basic Unity types such as Vector2 and Color also support interpolation.
Top
See Also