Launch parameters for starting server from Unity (keep ?debugnet and others)

i wanted to check and debug values while in browser, everytime i run the server the values for debug are gone like ?stats&debugnet etc. How to add these values by default when running the application from unity?

Original Post on Discord

by user 449162481353621505

Hi, currently these values are kept when you refresh the browser but not kept when you open a fresh server. I don’t think there’s currently a way to specify them from inside Unity.

You can set them from script though, for example like this:

Changed the channel name: Launch parameters for starting server from Unity (keep ?debugnet and others)

yes, params for debug if we can setup in unity and when app launches from unity (fresh server) then those are applied directly.

by user 449162481353621505

Please check if the script above does the job :slightly_smiling_face:

thanks

by user 449162481353621505

@oye the latest version has a callback now, ActionsBrowser.BeforeOpen that you can use to modify the URL to your liking