ReplayManager.RegisterReplayPrefab Method

Ultimate Replay

ReplayManagerRegisterReplayPrefab Method
Attempts to register a game object as a prefab so that the replay system is able to spawn or despawn the object as needed. You only need to do this for objects that are likley to be either instantiated or destroyed during recording. The replay system will then be able to accuratley restore the scene state during playback. The specified object must be a prefab otherwise an error will be thrown and the object will not be registered. Prefab instances are not accepted.

Namespace: UltimateReplay
Assembly: UltimateReplay (in UltimateReplay.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void RegisterReplayPrefab(
	GameObject prefab
)

Parameters

prefab
Type: GameObject
The prefab object to register with the replay system
See Also