Unity Cloud WebGL output location

I’m currently trying to upload the webGL version of my project to an amazon s3 bucket. The problem is I need to know what the output path is for the build have no clue what that would be. Everyone that I’ve tried based on trying to read the documentation just fail saying the path does not exist.

Examples:

BUILD_OUTPUT_PATH="$UNITY_PLAYER_PATH"
BUILD_OUTPUT_PATH="$WORKSPACE/build/$(ls $WORKSPACE/build/)"
BUILD_OUTPUT_PATH="$WORKSPACE/.build/last/webgl_beta"
BUILD_OUTPUT_PATH="$WORKSPACE/build/$BUILD_TARGET/"

If you are using Windows you need to be sure to follow the instructions in our documentation that mentions the cygpath.

https://docs.unity.com/ugs/en-us/manual/devops/manual/build-automation/advanced-build-configuration/run-custom-scripts-during-the-build-process#Sample_script_to_get_the_path_to_the_player

The UNITY_PLAYER_PATH environment variable points to the output location where the built files should be when building Web/WebGL projects.

Oh I so I was using the correct value with $UNITY_PLAYER_PATH but I need to add that code if I’m using the Windows build OS but not for the Mac builder. I didn’t understand that the first time reading it since it mentions “passing to Windows Executable” and for some reason I thought that meant when making a windows platform build.

1 Like

I just set my build to the mac builder for now and it works.