Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Subscribing to the event StartPlaceMode to enable the Augmented Reality placement mode functionality.
// Listen for the world event "StartPlaceWorld". This will be sent
// by another component in the scene when the placement mode should
// be active. When that event is received, this script sets placeMode to true,
// which actually allows this script to react to touch events.
this.startPlaceWorldEvent = ctx.world.event('StartPlaceWorld');
this.startPlaceWorldEvent.listen(ctx, data => this.placeMode.set(true));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.