Design pattern: Hide UI when a user is idle

UI shouldn’t get in the way of your AR content! You can hide it when the user is enjoying the scene, and show it when they tap on the screen. This example shows how to use some utility functions to accomplish this. It will show the UI initially, and hide it when they stop interacting. Then, it will come back when they tap the screen again.