Accessing current build number / target name on pre export method

Hi,

I’d like to change the product name to include the target name and build number to make it easier for our clients to provide us clear info about which version are they using just by looking at the app on the home screen.

Is there any way to get these values from unity cloud build on the pre export method?

Thanks,

You can use the Build Manifest for this. There is a ‘BuildManifestObject’ tab along the top of that support guide that shows an example of using it in a pre export method.

Wow cool, thanks.

Just to clarify, in the docs it says that

So, can I access it in the Pre Export hook ? At that time the build hasn’t started yet, right?

At the time that runs, exporting the player hasn’t started yet.

Oh, sorry, I only looked in the JSON Text Asset tab.

Thank you, this is super useful !