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.

Interaction Cue

InteractionCuePlaceholder

The Interaction Cue shows the user how an object can be used: a glowing rim when it is the next thing to do, when the user points at it or selects it, and a green or red look when an action on it is right or wrong. It only signals: it detects nothing and decides nothing. The task elements and the procedure tell it what happened, and your scripts and graphs can too.

Put the placeholder on the object to signal, or on the root of it. Every task element prefab already has one.

States​

The cue is always in one state. When several apply, the first of this list wins:

Locked > Right or Wrong > Completed > Selected > Hover > the base state (Available or Next Target).

StateWhenWhat the user sees
AvailableThe defaultNothing
Next TargetThe object is the next thing to do: a task it is a target of is to do or in progress (and the procedure is Guided, if there is one)A cyan rim that pulses once a second, or stays fixed (Next Target Style), and the arrow if Show Arrow is on
HoverThe user points at the object with the mouse, a ray, a hand or a fingerA cyan rim, fixed; the label if Hover Style says so
SelectedThe user selected the objectA sharper cyan rim; the label stays
RightAn action on the object was rightA green rim, a check mark, a flash and a sound, for Feedback Seconds
WrongAn action on the object was wrongA red rim, a cross mark and a sound, for Feedback Seconds
CompletedEvery task of the object is completed or failedNothing: no rim, no arrow, no hover or selection rim, no label. The object stays clickable, unless Block Interaction When Completed is on
LockedThe object's Interactable is blocked, or a script locked the cueNothing, and no hover

How the cue knows​

  • Hover and select come from the object's Interactable: the one on the cue's object, or the nearest one above it. The cue is hovered while any local controller is on the object: each VR ray, each hand, the mouse and the finger count, and the rim goes off when the last one leaves. Selected needs the object's Visual Scripting Interactable Placeholder with the Selected state allowed, as the select events of the Interactable do.
  • Locked follows the Interactable: it is blocked when another user selects or moves it, when it is being edited, or when a node blocked it.
  • Tasks: a cue with Tasks (or on an object whose task element names one) follows them. It is the next target while any of its tasks is to do or in progress, completed when all are completed or failed, and next target again after a revert. The tasks of a Procedure in Assessed mode never make a next target.
  • Right and wrong: every result reported on one of its tasks shows on the cue, whoever produced it: a completion as right, a wrong result or attempt as wrong. The tasks a "start from step" skipped show nothing. A wrong action shows on the cue of the object that caused it (a decoy, a wrong choice) and not on the task's other objects.
  • A hint of a procedure shows the task's cues as the next target for a moment, in any mode, when the procedure's Hint Shows Target is on.

Without the application (Play mode of your own project) there are no Interactable events and no network: the cue answers the task status and the calls of your scripts.

Settings​

Tasks​

SettingDefaultWhat it does
TasksemptyThe tasks (objects with a Task) this object is a target of. Several when the same object is used in several steps. Empty: the task of the task elements on this object, if any
Block Interaction When CompletedoffWhile the cue is completed, the Interactable is blocked: no hover and no click. Off: a completed object shows no rim but can still be clicked

Look​

SettingDefaultWhat it does
Settingsthe SDK's assetThe materials, colour, arrow and sounds of the cue: an Interaction Cue Settings asset. Duplicate it to change the look of a whole environment. Without one the cue shows nothing, and the inspector says so
Next Target StylePulsePulse, Fixed or None (no rim; the arrow still shows if it is on)
Hover StyleRimRim, Rim And Label or None (the cue ignores hover)
Label Key, Label TextemptyThe hover label. The key is a key of the environment's Localization File, with the text as the fallback
Override Color, Coloroff, cyanA colour of your own for this object's next-target, hover and selected rims. Right and wrong keep their colours
RenderersemptyThe renderers that get the rim. Empty: every mesh and skinned mesh under the object, except those of another cue inside it

Feedback and arrow​

SettingDefaultWhat it does
FeedbackallWhat a right or wrong action shows: Rim, Mark (check or cross), Flash (right only) and Sound. Combine them
Feedback Seconds1.5How long a right or wrong action shows
Show ArrowoffA "go here" arrow above the object while it is the next target
Arrow AnchornoneWhere the arrow's tip goes. Empty: above the object's renderers
Is NetworkedonIn multiplayer, a right or wrong action you show with a script or node reaches every user of the room

Events​

On Next Target, On Hover Shown, On Right, On Wrong, On Completed and On Locked are UnityEvents without arguments.

Feedback objects​

The label, the check and cross marks, the flash and a 2D sound are objects of the scene, under the cue. The inspector button Add feedback objects puts them there (and the arrow, when Show Arrow is on). Without them the cue still shows its rim and plays its sounds, but there is no label, mark or flash: the inspector says what you lose.

A cue without feedback objects, bound to a procedure, uses the procedure's Shared Feedback (its mark and flash) above the object. A cue without feedback objects and without a procedure shows the rim and plays the sound only.

How the rim is drawn​

The rim is drawn on copies of the object's renderers, a child named __Cue next to each, created the first time the rim shows. Your own materials are never changed, so scripts that change them by index keep working, and an object with several materials lights up in full.

  • Every sub-mesh, skinned mesh and LOD level gets its rim.
  • A renderer that is Batching Static gets no rim (a warning says so): untick Batching Static on it.
  • A skinned mesh's rim follows its bones, not its blend shapes.
  • The copies carry no collider, so they never catch a click or a ray.

The pulse and the arrow's bobbing are computed by the shader: nothing runs per frame.

Multiplayer​

  • The rim, the label, the arrow, hover and select belong to each user: a user sees only their own.
  • Next target and completed follow the task state, which the task system shares.
  • Right and wrong from a task result are shown to every user of the room, with no cue traffic of their own.
  • Right and wrong that you show with ShowRight, ShowWrong or the node reach every user too, when Is Networked is on: one message for each action, never sent on. With it off they show on this client only. Each networked cue costs a network view in multiplayer: untick Is Networked for a cue that only follows tasks.

Cost on a headset​

  • Each visible cue adds one transparent draw for each sub-mesh of its renderers. A cue that is not showing costs nothing.
  • A skinned cue re-skins its copy on the GPU while it shows: keep at most two skinned cues visible at once on Quest. The inspector says so.
  • Plan for about ten cues visible at once on Quest, an arrow under 200 triangles and a flash of at most 30 particles.

From scripts and graphs​

All members act on this client, except ShowResult (see Multiplayer). Call them on the main thread.

MemberWhat it doesNode
State, BaseState, IsHovered, IsSelected, IsLockedRead the state and what it is made ofGet Cue State
SetBaseState(state)Sets the base state: Available, Next Target or Completed. Any other value throws. A cue with tasks sets it again whenever a task changes: the last change winsSet Cue State
SetLocked(bool)Locks or unlocks the cue. A cue is also locked while its Interactable is blocked: unlocking here does not unblock itSet Cue Locked
ShowRight(), ShowWrong(), ShowResult(bool right)Shows a right or wrong action for Feedback Seconds. A new one replaces the one shownShow Cue Feedback
SetHovered(bool), SetSelected(bool)For an object you drive without an Interactable
event CueChanged (InteractionCueChangedHandler: the cue, the previous and the new state)The state changedOn Cue Changed

EInteractionCueState is Available, NextTarget, Hover, Selected, Right, Wrong, Completed and Locked. A handler of a script is a method group, as for the other events of the scripting API.

using UnityEngine;
using Virtuademy.Environments.ScriptingApi.Placeholders;

public class ShowNextWhenReady : MonoBehaviour
{
[SerializeField] private InteractionCuePlaceholder cue;

// Hook this to any event: the valve is the next thing to do.
public void Highlight()
{
cue.SetBaseState(EInteractionCueState.NextTarget);
}

public void Wrong()
{
cue.ShowWrong();
}
}

The nodes are in Interaction Cue nodes.

Replaces your own highlight

The cue replaces the Highlight Item with material nodes and the Informative Highlight of the legacy Control Manager kit. Those add a material to the renderers, which draws only on the last sub-mesh of an object with several materials and not at all on a skinned mesh.

What not to do​

  • Do not use the cue to decide anything. It signals; the element, the procedure or your script decides.
  • Do not leave Batching Static on a cued object: it gets no rim.
  • Do not leave Settings empty. The cue shows nothing without them.
  • Do not leave Is Networked on every cue of a large scene that only follows tasks.
  • Do not put the cue on an object that is switched off and expect it to show: an inactive object shows nothing, and a right or wrong action on it is only raised as an event.