Get Player Settings->iPhone Bundle Version in script?

Is there any way to get/set the iPhone Bundle Version value that is set in the Player Settings from script?

I’d like to display the version number for testers.

Thanks.

From the editor scripts / your build script it should be possible I think.

but not from runtime (game scripts). if you want to use it there, you must have a string that you set manually

Thanks, dreamora.

Do you know where I might find the documentation for this? I can’t find it in the Scripting Reference or a search in the forum.

when then in the iphone part of the manual or the scripting reference on buildplayer / player settings (search for them, iphone docs won’t appear on the listing)

but I’m unsure if they are there and I don’t see a direct use of them as they could at best be used to create a textasset that you use within the app, but nothing else ( you can’t affect anything source related at all anymore at that point)

I realize this is a rather old post. I cam across it in these forums while I was searching for how to do it. Here is an example of what I learned.

static void PerformIOSBuild()
{
float temp = float.Parse(PlayerSettings.bundleVersion);
temp += .001f;
PlayerSettings.bundleVersion = temp.ToString();
}