Skip to content

A label that follows the selection

Updated

A text label with a Follow Target: selecting a moving exhibit retargets the follower to it and shows the exhibit’s name; deselecting hides it.

Click an exhibit, then another, and watch the label follow it as it moves. Drag to orbit the camera, scroll to zoom.

A label that follows the selection

The script is explained step by step in A label that follows the selection.

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.

InspectLabel.xrproj