Skip to content

Instantly share code, notes, and snippets.

Created August 8, 2019 13:47
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 ='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