Hi there,
In the Addon SDK v1, the runtime had the "IsInWorker()" function as well as the "IsPreview()" function. Now it seems that there is only "IsInWorker()" left.
How can I check via the SDK v2 whether the game is in the preview?
Thank you :)
Develop games in your browser. Powerful, performant & highly capable.
This doesn't exactly answer your question, but there's a System > Is in preview condition in event sheets.
System > Is in preview
runtime.platformInfo.exportType === "preview"
Previously that required the Platform Info object to be added to the project, but as of r408+, it's permanently available without needing the Platform Info object.
Thanks!