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 - iOS Tutorial
From the course: AR for iOS Developers: RealityKit and Reality Composer
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
A planet detector app2m 4s
-
(Locked)
Project setup4m 39s
-
(Locked)
Image recognition with image anchors4m 23s
-
(Locked)
Load content into your app4m 50s
-
(Locked)
Handle user actions from Reality Composer4m 37s
-
(Locked)
Trigger Reality Composer actions in code4m 15s
-
(Locked)
Challenge: Solar detect1m 28s
-
(Locked)
Solution: Solar detect2m 46s
-
(Locked)
-
-