Skip to content

Lock scenery against editing

Updated

The floor-standing scenery is locked with Lock components, so in the editor it cannot be picked or moved by mistake, while scripts still move it. Clicking the crate locks or unlocks it and the Lock::change event reports it.

Read the log for the locked entities, then click the crate to lock or unlock it. The pillar is locked but the script still turns it. Download the project to see the locks in XR Creator. Drag to orbit the camera, scroll to zoom.

Lock scenery against editing

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.

LockedScenery.xrproj