UnityLink`
UnityLink`

UnityBuild

UnityBuild[]

builds the current Unity project.

更多信息

  • UnityBuild returns the path to the build it built, and $Failed if it was unable to build the project.
  • UnityBuild builds the current Unity project to be run outside the Unity Editor.
  • The following options can be given:
  • "BuildName"Automaticthe name of the build
    "BuildDirectory"Automaticthe directory where the project will be built
    "Platform"Automaticthe target platform to build for
    "Scenes"Automaticthe scenes to include in the build
    "Icon"Automaticthe icon to use for the build

范例

基本范例  (2)

Load the UnityLink:

Open a Unity project:

Build the roll-a-ball game in your home directory:

Open and play the game: