Skip to main content
Version: 2026.7
Still in testing

The SDK of this version is still being tested, and these pages are being updated with it: names, menus and procedures may still change before the release. If you build content for a platform already in production, follow the documentation of that version — pick it from the version menu at the top right.

The tutorial and the tablet

The application has two panels of its own that cover a part of the view and want the user's attention: the tutorial (the help panel) and the tablet. An environment can tell when each is open, to keep its own panels out of the way or to wait.

Both are read-only: opening and closing them is the user's (the tutorial can also be opened and closed by your environment, see the Tutorial Enable node).

The tutorial (help panel)​

IVirtuademyGameplay.Current.Help (IHelpApi):

MemberWhat it does
IsAvailableWhether the application has a help panel at all
Open(), Close()Open or close it
IsOpenTrue while the panel is open, opening or closing
OpenedRaised once it has finished opening
ClosedRaised once it has finished closing

The application opens the tutorial by itself the first time a user enters an environment, and while it is open the user cannot move. An environment that starts something on entry (a timer, an introduction, a popup) can wait for Closed, or check IsOpen.

In VR the SDK's overlays (the HUD and the Notification Host) hide while the tutorial is open and let the ray through, because it is where the user must point.

Nodes: Is Tutorial Open, On Tutorial Opened, On Tutorial Closed, Tutorial: Enable (Scene nodes).

using UnityEngine;
using Virtuademy.Environments.ScriptingApi;

public class StartAfterTutorial : MonoBehaviour
{
// Hook this to what must start once the user can move.
public void BeginWhenReady()
{
IVirtuademyGameplay world = IVirtuademyGameplay.Current;

if (world.Help.IsAvailable && world.Help.IsOpen)
{
world.Help.Closed += Begin;
return;
}

Begin();
}

private void Begin()
{
IVirtuademyGameplay.Current.Help.Closed -= Begin;
// ... start the introduction, the timer ...
}
}

The tablet​

IVirtuademyGameplay.Current.Tablet (ITabletApi):

MemberWhat it does
IsAvailableWhether this application has a tablet: false on mobile, and outside the application
IsOpenWhether the tablet is open now
Opened, ClosedRaised when it opens and when it closes

The tablet is the panel the user opens for files, settings and the session, on desktop and WebGL and in VR. Nothing in the SDK reacts to it: on desktop it is drawn over the view, in VR it is a panel the user points at. An environment that keeps a panel over the screen, or a world panel in front of the user, can hide it on Opened and show it again on Closed.

Nodes: Is Tablet Open, On Tablet Opened, On Tablet Closed (Tablet nodes).

using UnityEngine;
using Virtuademy.Environments.ScriptingApi;

public class HideWhileTablet : MonoBehaviour
{
[SerializeField] private GameObject myPanel;

private void Start()
{
if (!IVirtuademyGameplay.IsAvailable || !IVirtuademyGameplay.Current.Tablet.IsAvailable)
{
return;
}

ITabletApi tablet = IVirtuademyGameplay.Current.Tablet;
tablet.Opened += Hide;
tablet.Closed += Show;
}

private void OnDestroy()
{
if (IVirtuademyGameplay.IsAvailable)
{
ITabletApi tablet = IVirtuademyGameplay.Current.Tablet;
tablet.Opened -= Hide;
tablet.Closed -= Show;
}
}

private void Hide() => myPanel.SetActive(false);

private void Show() => myPanel.SetActive(true);
}