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.

Platform traps

Things that cost creators a round of build, deploy and test, found while building environments with the SDK. Each one says what you see, why, and what to do. Where a trap is also explained on the page of the component, the entry is short and links there.

A few entries were seen once and their cause was not isolated. They say so: treat them as warnings, not as rules of the platform.

Clicks and hover​

  • The first click selects, the second one interacts. The Interactable prefab has the Selected state on, so a button built from it needs two clicks. Untick Selected in the Desktop Allowed States and VR Allowed States of its Visual Scripting Interactable Placeholder. See Interactable.
  • A click-only object that can be dragged, or that opens a menu. The prefab also carries a Manipulable Placeholder and a Contextual Menu Placeholder. Remove them from a button, a valve or a door: with the Manipulable one, a press that moves a few pixels is a drag, not a click.
  • The nearest collider takes the click. A padded box, the collider of a highlight copy or a hover-only proxy takes the click meant for the object behind it, and a VR ray starts lower than the head. See Colliders and the click.
  • Hover before the click, when you drive a test with a script or a remote browser. Unity reads the pointer's position from move events: an automated press with no move before it can land where the pointer was last seen. Move the pointer onto the target, then press. A real mouse does this by itself: the platform raycasts at the pointer's position, at the press and at the release.
  • A hidden browser tab runs at a few frames per second. A tab in the background, or a pane that is not visible, is throttled by the browser, and Unity then misses clicks. Keep the tab in front while a test runs.
  • Your own raycast also hits what is behind the application's pop-ups. A Physics.Raycast of yours on a click gets the click made on a button of a platform pop-up (the welcome pop-up's Skip, for example), and EventSystem.IsPointerOverGameObject() does not report the pointer as over it. Interactables are protected from this, your own raycast is not: make the objects Interactables. See Writing scripts.
  • The lowest fifth of the screen on WebGL is the platform's bar. An Interactable drawn there never gets the click. See Interactable.

VR​

  • The trigger is not consumed by a graph that reads it. The Input Action Reference node (Utility nodes) reads a button, and the platform still uses the trigger for its own clicks: one press can both click an Interactable and run your graph (in a test, a press both clicked and sprayed). For an action on an object, use the Interactable's events; for a tool, the tool use events.
  • Keep your own bindings off the buttons the application uses. In a test on a Quest, the left X and right B buttons opened the application's tablet and its help panel. Test each button you bind, on a headset.
  • The XR actions can be off after the world is reloaded. The DefaultXRActionEnabler prefab switches the controller actions on. After a reload of the scene (the Reload Scene node, Try again), the old copy was seen to switch the actions off after the new one had switched them on, and the buttons stopped answering. Check the buttons after a reload on a headset, and do not rely on a raw button where an Interactable event or a tool use does the job.
  • The ray goes behind world UI. The controller ray is drawn at sorting order 5 on the Default sorting layer. A sprite, a 3D text or a world-space canvas of yours at 5 or more covers it. Give yours a lower order: see Scene setup. The application's own panels can still cover the ray, and a scene cannot change them.
  • A panel that ignores depth shows through walls. A world-space panel or material with ZTest set to Always is drawn through the walls. For a result on WebGL and mobile use a screen-space panel, and in VR a panel that is depth-tested and placed in front of the head. The SDK's panels do this by themselves: see UI panels.
  • Teleport ignores closed doors. Two floor colliders that touch at a doorway let the teleport arc land on the other side. Split the floors per room and switch each floor on and off with its door. See Doors, valves and switches.

Scripts​

  • One MonoBehaviour per file, with the file named like the class. In one environment, a class that shared a file with another showed null serialized references in the app while the Editor worked, silently. The cause was not isolated (another change was made at the same time), but the rule is Unity's own and costs nothing: keep to it.
  • A uGUI pointer handler on a Screen Space - Overlay canvas was not delivered in the app. In one environment the IPointerDownHandler and IPointerUpHandler methods of a button on such a canvas were not called in the player, while the EventSystem's raycast hit the button. Not isolated either. If you meet it, use the SDK's UI Toolkit panels (UI panels), or read the legacy Input and test RectTransformUtility.RectangleContainsScreenPoint yourself.
  • A call that fails never returns, and nothing says so. Give every wait on the scripting API a timeout. See Writing scripts.
  • An analytics key with another character than 0-9, A-Z, a-z, ? and ! never gets its experience id, and the log is silent. See Analytics from a script.
  • Some .NET members are missing in the app, StringBuilder.Append(char) among them. See Writing scripts.
  • A camera mode takes the input away. UseStaticCamera, UseDragRotationCamera and UseFreeCamera switch off movement, jump, sitting and zoom, and the mobile controls with them; ApplyDefaultInputSettings() gives them back. See Writing scripts.

Texts and the browser​

  • A key the Localization File lacks shows as the key. Translate hands the key back, and a new key fails silently until the file is uploaded again. Use TranslateOr(key, fallback) with the text in your main language, and run Virtuademy ▸ Advanced ▸ Check missing translations before you publish (Editor tools).
  • A browser keeps the bundles and the Localization File it already downloaded. After a publish, reload the page without the cache (Ctrl+F5) before you judge the change, and again when you replace the Localization File.

Building and publishing​

  • A build that was killed can leave the Addressables settings changed. The next build refuses with a message that Addressables are not configured. Open Virtuademy ▸ Advanced ▸ Addressables settings and use Fix build settings (Editor tools).
  • A command line cannot run while an editor has the project open. Close the project first: see Command lines.
  • A scene built with an older version of your scripts is refused at deploy. After a script change, rebuild every scene you publish.