In the Unity webgl template I have custom fields like UNITY_WEBGL_LOADER_URL, is there a way to create custom ones? Like APP_TARGET_ENVIRONMENT_ENDPOINT or something I can change inside of Unity when it’s building based on build symbols and the like?
I’ve needed something similar on a project and we’ve solved using a PostBuildProcess. If you have X symbols defined in your code and in thr project properties, you can create a postbuildprocess to modify the template and add your custom data.
Regards,
Dani
You can create your own tags: you just need to prefix the tag name with UNITY_CUSTOM_
Once you do that, the tag should appear in the PlayerSettings=>ResolutionAndPresentation, where you can assign a value to it. See also this manual page.
Hope this helps.