UnityLink`
UnityLink`

UnityBuild

UnityBuild[]

builds the current Unity project to the project directory.

UnityBuild[path]

builds the current Unity project at the specified path.

Details

  • UnityBuild attempts to build the open Unity project, returning Success or Failure.
  • UnityBuild builds the current Unity project to be run outside the Unity Editor.
  • The following options can be given:
  • "Platform"Automaticthe target platform to build for
    "Scenes"Automaticthe scenes to include in the build
    "Icon"Automaticthe icon to use for the build

Examples

Basic Examples  (2)

Load the UnityLink:

In[1]:=
Click for copyable input

Open a Unity project:

In[2]:=
Click for copyable input

Build the roll-a-ball game:

In[1]:=
Click for copyable input
Out[1]=

Open and play the game:

In[2]:=
Click for copyable input