Skip to content

Networkable Trait

Updated

One thing its Networkable replicates to everyone in the room, and how often.

Type
comp-networkable-trait
Script class
NetworkableTraitComponent
Per entity
Several
Version
1.0.0

Read about it in Multiplayer: what it does, how to use it from a script, and examples.

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(NetworkableTraitComponent);
if (component) log(component.props);
}