sync

altspace/components. sync

Enables the synchronization of properties of the entity. Must be used in conjuction with the sync-system component and a component for a specific property (e.g. sync-transform).

Example
<a-box random-color sync='own-on: click' sync-color></a-box>

Extends

Members

(readonly) isMine :boolean

Indicates whether the sync ownership is yours.

ownOn :string

The name of the event, or a list of events, that will cause the local client to take ownership of this object. This field cannot be updated after initialization.

Methods

takeOwnership()

Tell sync to start pushing local property values instead of updating local from remote values.