Skip to content

Count the tables in the room

Updated

Counts the real tables an AR device detects from the XR Planes events, and emits the count on hud/tables for a HUD to show.

This one needs AR: in a headset or AR phone that labels planes, each table found raises the count. On a desktop no planes are detected.

Count the tables in the room

The script is explained step by step in Count the tables in the room.

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

CountTables.xrproj