Skip to content

A crate everyone can move

Updated

Your first shared object: a grabbable crate with a Networkable and transform and material traits; whoever takes it gives it a new colour for everyone.

Drag the crate. The preview has no Arena room, so the log says you are playing alone; in a published world, open it in two tabs to see the crate move and change colour in both.

A crate everyone can move

The script is explained step by step in A crate everyone can move.

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.

FirstSharedCrate.xrproj