Skip to main content

Replay Define Symbols

When integrating Luna Replay into your Unity project, you may find instances where you wish to use specific code only when the game is in (or not in) capture or replay mode.

To facilitate this, two define symbols are provided which allow you to partition your scripts accordingly.

Luna Capture

LUNA_CAPTURE

The Luna Capture #define symbol is a preprocessor directive, available in capture mode only.

Luna Replay

LUNA_REPLAY

The Luna Replay #define symbol is a preprocessor directive, available in replay mode only.

Example

#if LUNA_REPLAY || LUNA_CAPTURE
// Some specific code for Luna Replay
#endif