Does anyone know if there's a way to pass variables in the URL in the preview window? When uploading to my server I can pass parameters using the Browser.QueryParam("variable") method this works well, but I can't test this in the preview windows as the URL can't be edited. Does anyone know a workaround without uploading every build to my server?
In the settings of Construct 3 you can modify the "Preview in" option so that it happens in a browser tab, then allowing you to modify the URL as much as you want.
Perfect, thanks! (I only wish you could change the settings on the fly instead of restarting construct, but that's for another post : )
You can always try to post it on the suggestion platform, but I have a feeling due to Construct being in a browser, this likely won't be an easy thing to implement, possibly impossible to.
Perhaps you should have a look into the remote preview ? This could allow you to open your preview directly in a regular browser, external to C3 and possibly still allow you to add elements at the end of your URL ?
Develop games in your browser. Powerful, performant & highly capable.
Thanks, it'll work fine locally in the browser, I just open up a small separate window to run the preview in.
I couldn't get url parameters in the remote preview to work, but for now I'm fine