Unity Configuration on School PCs


Unity Hub

Launching Unity Hub

On the school computers, launch Unity Hub from the menu Applications > Development > Unity Hub.

On first use, you will need to:

  • create a Unity account.

Locating the Unity Editor

In Unity Hub, perform a Locate of the Unity installation and specify the following path:

/opt/img/Unity-2021.3.9f1/Editor/Unity

Visual Studio Code (C# editor)

To automatically open your C# scripts in Visual Studio Code from Unity:

  1. Open Unity.
  2. Go to Edit > Preferences.
  3. Select the External Tools tab.
  4. In External Script Editor, choose Browse… (if VS Code does not already appear).
  5. Indicate the following path:
/usr/bin/code

If there is an auto-completion issue (OmniSharp)

If auto-completion does not work correctly in Visual Studio Code:

  1. Go to: File > Preferences > Settings > C# configuration > Omnisharp Use Global Mono
  2. Change the value from auto to always.

If the problem persists:

  • uninstall and then reinstall the C# extension in Visual Studio Code,
  • then set again Omnisharp Use Global Mono = always.

For Windows machines, if the error persists, consult: (https://github.com/dotnet/vscode-csharp/blob/main/docs/Troubleshooting-‘The-.NET-Core-SDK-cannot-be-located.’-errors.md)

Choosing the project folder (very important)

When you create a Unity project, place it in a local directory on the machine, for example:

  • /tmp or
  • your local space on the school PC.

Why?

This allows you to use the local SSD, which is much faster than the network drive where your personal space is located.

⚠️ Important: mandatory backup at the end of the session

This folder is local and temporary: it is deleted when the machine is restarted.

👉 At the end of the session, you must copy your Unity project to your personal space.