UnityLink`
UnityLink`

LaunchUnity

LaunchUnity[]

launches the Unity engine on the current computer.

LaunchUnity[proj]

opens the specified project proj.

LaunchUnity[proj,method]

executes the specified method at startup.

Details

  • LaunchUnity returns a UnityProcessObject if the process it specifies can be started; otherwise, it returns $Failed.

Examples

Basic Examples  (1)

To use UnityLink, you need first to load the package:

In[1]:=
Click for copyable input

Launch the Unity engine:

In[2]:=
Click for copyable input

Get the version:

In[3]:=
Click for copyable input

Close the Unity engine:

In[4]:=
Click for copyable input