Subscribing to the event StartPlaceMode to enable the Augmented Reality placement mode functionality.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|// 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));|