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.
Task System Prefab
To use the task system you add a prefab to the scene. You find both in Virtuademy-SDK-Environments > Runtime > Tasks > Prefabs:
- TasksLogic: the task system and the older uGUI task panel. Tasks run and the panel shows them; nothing is scored.
- TasksLogic_Procedure: the task system with a Procedure (scoring, errors, hints, time, summary), and the task panel that you can place per platform. Start from this one when the experience is a training that should be assessed.

Inside TasksLogic you'll find 2 GameObjects:

- MainUIWorldSpaceCanvas: Contains the taskUIPanel used to display the titles and descriptions of the tasks that the user has to perform. It is a uGUI canvas that stands in the world.
You can turn off the Canvas component of the GameObject if you don't want to show the panel inside the environment. To place the panel per platform, or to hide it on one, use the Task Panel of TasksLogic_Procedure instead.
Don't turn off the MainUIWorldSpaceCanvas GameObject of TasksLogic or the task system logic won't work!
- TaskSystem: Contains the actual logic and timeline of the tasks. This is where you create and manage tasks and their dependencies.
TasksLogic_Procedure has the same TaskSystem object, with a Procedure Placeholder on it. Its uGUI canvas is switched off, and its own panel is the TaskPanel object (a Task UI Placeholder, drawn by the application). It also has the ProcedureFeedback object with the panels and the summary of the procedure.
The texts of the panel of TasksLogic (and of TasksLogic_Procedure, which nests it) use the package's Poppins Regular font, and both prefabs, with everything they nest, refer only to assets that the packages ship: a project that installs them shows no missing reference. The TaskUIPanel and TaskUIElement prefabs of the SPACS-Tasks package no longer refer to the fonts, sprites and render textures the package never shipped; those fields are empty, so used on their own they draw their texts with TextMesh Pro's default font and their images plain.
The steps counter
The panel of TasksLogic shows the current step and the total, for example 01 / 03. What is counted is set in the Task UI Manager component of the TaskUIPanel (under MainUIWorldSpaceCanvas), in the Steps Tasks Type field:
- Macrotask (the default) counts only the tasks that have Dependencies, that is the tasks made of subtasks.
- Subtask counts the tasks that have none, and the tasks at the deepest level shown.
A graph whose tasks are linked only through Next, with no Dependencies, has no macrotask: with the default setting the total reads 00. Set Steps Tasks Type to Subtask to count every task of the chain. The current step is the number of completed tasks plus one.
The task panel of the procedure has no such setting: it counts the tasks without sub-tasks.
Sample scene
You can find a sample scene, Sample Task Scene, in the samples section of the Virtuademy-SDK-Environments package, inside the package manager.

After the download, the scene can be found in the following path:
Assets > Samples > Virtuademy-SDK-Environments > 10.1.0 > Sample Task Scene (the number is the version of the package)
The same Samples tab has a second sample for the procedure, Procedure: find the hazards: a guided procedure in a warehouse built from primitives. The user reaches a zone, collects and wears the protective equipment, finds the hazards among distractors and answers a pool of questions, with scoring, hints, a time limit and the summary. Every task is completed by a task element, with no task listener and no graph, so it is a good model to copy for your own procedure. After the import it is under Assets > Samples > Virtuademy-SDK-Environments > 10.1.0 > Procedure: find the hazards.
Known issues
- A task that fails does not advance the chain, in a task system without a procedure. The chain moves on only when a task is Completed: that is what unlocks the next task and completes the tasks that depend on it. In a task system with no Procedure Placeholder, a task set to Failed (the Fail Task node, the
FailTaskmethod of the task) unlocks nothing, so the chain stops there and the training never reaches its end panel. Do not fail a task unless the training is meant to end there. With a Procedure Placeholder whose On Task Failed is Continue (the default), a failed task scores 0 and the flow goes on. - The panel counts one step more than the tasks it shows. The current step is the number of completed tasks plus one, and the total is the number of tasks plus one: with 18 tasks the panel reads "n/19". Check the total on the panel against your graph. For TasksLogic, see The steps counter for the setting that decides what is counted.
- Files that appear in the project. Using the task system leaves an untracked
Assets/TextMesh Pro/folder: it is the TextMesh Pro essential resources, which the SDK imports once into a project that lacks them (see SDK setup), not something the task system adds. The Task UI Placeholder creates an emptyAssets/SpawnableObject/SpawnableObjectList.assetevery time the scene opens, and the cause is not known. It is not established whether a project should commit them: decide it for your team, and keep it the same on every machine.