Demonstrates how to control the speed of the simulation.
The ITimeSimulationSystem allows you to speed up, slow down, stop, and resume the simulation. Use the UI checkbox to stop and resume the simulation. Use the UI input field to set the specific speed of the simulation. The current speed of the simulation will be updated and appear on the UI.
Utilize the ITimeSimulationSystem API for your scene and its agents by adding the ExampleTimeSimulation script.
Add this script to an object in your scene to enable the use of the ITimeSimulationSystem. In this script, UI widget presses are handled to set the time simulation speed via the service.