Skip to content

A help panel that stays in front of the player

Updated

A script points a UI panel’s Follow Target at the main camera, 1.2 m ahead and a little low, with tolerances that let you glance around before it glides back in front.

Drag to orbit the camera a little: the panel stays put. Turn further than 35° and it glides back in front of you.

A help panel that stays in front of the player

The script is explained step by step in A help panel that stays in front of the player.

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.

HelpPanelFollow.xrproj