Returns

string
An error message if an error occurred.

Description

Builds a player.

Use this function to programatically create a build of your project.
Note that any references to GameObjects acquired in the editor script before the BuildPlayer call will be invalid after it and will need to be reacquired.