Skip to content

Spectate the selected car

Updated

A Third Person camera that follows whichever car you click: the script passes the clicked entity as the controller target.

Click a car to follow it. Drag to orbit it, scroll to zoom.

Spectate the selected car

The script is explained step by step in Spectate the selected car.

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.

SpectateSelected.xrproj