Skip to main content
Version: 2026.6

Set up interpreted scripts

You set up interpreted scripts once per project, from the same window you used to set up the SDK.

Before you start​

  • Git must be installed and on the PATH: the interpreter is downloaded from its Git repositories (see Prerequisites).
  • Your Unity Editor needs the build support module of all four target platforms: Android, iOS, WebGL and Windows. Your scripts are compiled for each of them, and the platform refuses a set that is missing one. The setup window checks all four (see Unity setup).

Install the interpreter​

  1. Open Virtuademy ▸ Setup project.

  2. Next to Interpreter installation (optional), click Install interpreter. Expand the foldout to see its checks.

    Interpreter installation (optional), expanded: both checks still red, and the Install interpreter button

  3. Unity downloads the interpreter package and reloads. The SDK then finishes the setup on its own:

    • it installs the interpreter in the Editor;
    • it creates the folder Assets/VirtuademyEnvironmentScripts with an assembly definition of the same name, which already references every assembly a script may use (see below);
    • it registers that assembly as the one the platform loads.

    When it is done, the Console says [Setup] Done. Write your scripts in Assets/VirtuademyEnvironmentScripts…. The installation writes other messages in the Console too; they need no action.

  4. Back in the window, both checks are green: Interpreter package installed and Interpreter ready to build. From now on the button reads Fix, and it is greyed out while everything is in order. If a check turns red, the reason is written under the checks: click Fix to repeat the missing steps.

    Interpreter installation (optional) after the setup: both checks green and the Fix button greyed out

The scripts folder​

  • Put your scripts anywhere under Assets/VirtuademyEnvironmentScripts, in subfolders if you like.
  • Keep one assembly definition, the one the setup created, at the root of the folder. A second assembly definition at the root is an error, and one in a subfolder takes its scripts out of the interpreted assembly (the Console warns you).
  • Do not rename the assembly definition or change its name: it must be VirtuademyEnvironmentScripts, or the build stops. If it was changed, click Fix in the setup window.
  • A project whose scripts are still in the folder of earlier test versions, Assets/HotUpdate, is moved to the new folder by Fix.

Referenced assemblies​

Your scripts can use the classes of the assemblies that the VirtuademyEnvironmentScripts assembly definition references. The setup adds all the assemblies the security rules allow, so there is nothing to add:

Assembly definitionFor
Virtuademy.ScriptingApi, Virtuademy.Environments.ScriptingApiThe scripting API
Unity.TextMeshProTextMeshPro (TMPro namespace)
UnityEngine.UIuGUI (UnityEngine.UI namespace: Button, Image, Toggle…)
SPACS.Tasks, SPACS.DialogsThe Tasks and Dialogs engines

A reference you add yourself is kept, but any assembly not in this list, the other assemblies of the SDK included, is refused by the security check (DisallowedAssemblyReference).

The VirtuademyEnvironmentScripts assembly definition in the Inspector, with its six references