Ultimate Replay Scripting Reference
ReplayObject Class |
Only one instance of ReplayObject can be added to any game object.
Inheritance Hierarchy
Namespace: UltimateReplay
Assembly: UltimateReplay (in UltimateReplay.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class ReplayObject : MonoBehaviour, IReplaySerialize
The ReplayObject type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReplayObject | Initializes a new instance of the ReplayObject class |
Methods
Name | Description | |
---|---|---|
Awake |
Called by Unity.
| |
OnDestroy |
Called by Unity.
| |
OnReplayDeserialize |
Called by the replay system when this ReplayObject should deserialize its replay data.
| |
OnReplaySerialize |
Called by the replay system when this ReplayObject should serialize its replay data.
| |
RebuildComponentList |
Forces the object to refresh its list of observed components.
Observed components are components which inherit from ReplayBehaviour and exist on either this game object or a child of this game object.
|
Fields
Name | Description | |
---|---|---|
observedComponents |
An array of ReplayBehaviour components that this object will serialize during recording.
Dynamically adding replay components during recording is not supported.
|
Properties
Name | Description | |
---|---|---|
IsPrefab |
Returns true when this game object is a prefab asset.
Returns false when this game object is a scene object or prefab instance.
| |
PrefabIdentity |
Get the prefab associated with this ReplayObject.
| |
ReplayIdentity |
Get the unique ReplayIdentity for this ReplayObject.
|
See Also