Luna Replay provides a debugging feature to help you identify what may be causing the sequence of random numbers in your game to change between capture and replay.
The Capture and Replay UIs contain a checkbox to debug randoms, depending on which mode you are currently in.
- Capture mode
- Replay mode
When enabled, each call to
UnityEngine.Random will be be printed to the Unity console, along with a full stack trace to help you identify where it is being called.
With the full stack traces for your capture and replay, it will be possible to identify where the discrepancies occur, and isolate the issue. You can refer to our documentation for how to treat certain cases.