From the course: AR for iOS Developers: RealityKit and Reality Composer

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Handle user actions from Reality Composer

Handle user actions from Reality Composer - iOS Tutorial

From the course: AR for iOS Developers: RealityKit and Reality Composer

Start my 1-month free trial

Handle user actions from Reality Composer

- [Narrator] We have already created our load planets function that allows us to asynchronously load our models into our augmented reality scene, without blocking the main thread and having a very smooth experience when we are launching our application. Now, we're going to use reality composer again not only for designing our augmented reality experience, but also to save some code that we would need to write. If you remember our introduction to this application, then you might also remember that when we press on our sun, that we get some additional information about the sun, and using behaviors, so I'm opening up the behaviors panel at the bottom by clicking on behaviors, I can add another custom behavior. So I'm selecting custom here, and I'm going to rename this to tap action. And this tap action behavior allows me to specify a trigger, of course, we already talked about that. I'm going to select a tab trigger here, and…

Contents