Calling Unity From the Wolfram Language

The Wolfram Language allows you to call individual functions or methods within the Unity game engine in running or editing mode. Unity game objects and components are represented in a symbolic form that can immediately be manipulated within the Wolfram Language and makes access, creation, modification and analysis more convenient even than from Unity native environment.

Basic Program Operations

UnityOpen open a Unity project

UnityPlay, UnityStop, UnityPause, UnityStep set Unity editor play mode

Unity Objects & Components »

UnityGameObject represents a game object

UnityScene  ▪  UnityCamera  ▪  UnityTransform  ▪  UnityMeshFilter  ▪  ...

Unity Assets »

UnityPrefab represents a prefab

CreateUnityAsset  ▪  FindUnityAsset  ▪  UnityAudioClip  ▪  ...

Unity Process

LaunchUnity launch the Unity engine

CloseUnity close the Unity engine

UnityProcessObject an object representing the Unity process

ProcessStatus  ▪  ProcessInformation  ▪  KillProcess  ▪  ProcessConnection

Direct Control of Unity Engine

UnityTokenExecute execute a menu-like Unity command

UnityExecute execute Unity static methods and interface commands

Unity Information & Resources

UnityCurrentValue test or set values of the Unity editor and game engine

UnityInformation information about your Unity game engine

$UnityLinkResourceDirectory give the location of UnityLink resource files

$UnityExecutable location for the Unity executable

$UnityLogFile give path to Unity log file

CurrentValue  ▪  Environment  ▪  $CommandLine  ▪  ControllerInformation