[Update] September 11, 2024
[Update] July 30, 2024
Hey Creators,
Starting today, you will be able to opt into the Studio Beta for the improved Studio Pause behavior. To do this, go to File > Beta Features and enable Simulation Pause.
With this Studio Beta, you will be able pause the simulation of your scene without disabling rendering. This can help with debugging ephemeral scenes and mechanisms by allowing you to dive deeper into what’s visually going on in that moment.
Please note that if you would like to visualize aerodynamic forces and torques, you must enable the Aerodynamics Studio Beta.
Before and After
The Pause Physics button, located under the Test tab within the Simulation section, now enables visual navigation and debugging while simulation is paused — check out the before and after:
Pause / Resume Specificity
The new drop down for Pause Physics will let you choose between pausing both client and server simulations via Pause Physics: All or selecting Pause Physics: Current and only pausing the simulation you’re currently viewing (Client or Server), adding an extra layer of debuggability support. Similarly, you will be able to Resume Physics: All or Resume Physics: Current, based on your specific debugging use case.
Showing the ability to pause just the client and just the server, with side by side client and server views.
What Will and Will Not be Paused:
The new pause behavior will not pause all scripts as it did before. Though this behavior will be preserved within the scripting tab (see next section), only certain RunService callbacks will pause. Others will remain unpaused, allowing for some code to continue executing while the rest of the simulation is paused.
The following callbacks will not fire while paused:
- PreAnimation
- PreSimulation
- PostSimulation
- Stepped
Other RunService event callbacks such as Heartbeat and RenderStepped will continue to fire. Heartbeat will enable plugins to continue functioning and stepping in studio, while RenderStepped and PreRender ensure that camera scripts and visualizations work normally. . All scripts and related logic will continue to run even while physics is paused.
Script Debugger Pause
The new Pause Physics operates completely independent of the script debugger, meaning that your existing script debug workflows should be completely unaffected.
The Pause Scripts and Resume Scripts buttons within the scripting tab will work as they did before, pausing all scripts as well as rendering.
You can pause simulation, then click on a script, and pause the script from there if you want.
The Run/Pause hotkey (F5) is still tied to the original Pause Scripts behavior. If you would like to add a hotkey for Pause Physics, you can customize your Studio Shortcuts via File → Advanced → Customize Shortcuts.
What’s Next?
Check back soon for a new way to step individual frames in Studio! Also, stay tuned for other exciting debug visualizations like a Force & Torque Visualization tool and a Center of Mass Visualizer . We’re excited to empower you to build bigger, more complex experiences!
As always, please let us know if you have any questions, concerns, or requests!
Best,
m0bsterlobster