I’d like to print PlayerSettings.bundleVersion to the screen so I can display it on the screen as a build number. The problem is that PlayerSettings.bundleVersion is an editor only setting, so I need to take that value and set it to a variable that I can use in script. I believe I need to make an editor script to save off the value to be able to access it in a script. How do you save PlayerSettings.bundleVersion to a variable to use in script?
You could just have a static string in whatever script is responsible for printing debug info to the screen. In order to set it, simple use .ToString().
void SomeMethod
{
SomeScript.staticString = PlayerSettings.bundleVersion.ToString();
}