RealityKit Basics: using realityKitScene Environment Variable
We can access the RealityKit Scene of the nearest RealityView.
Code snippets and examples of using common APIs throughout visionOS development
We can access the RealityKit Scene of the nearest RealityView.
We can use this SwiftUI modifier to adjust the lighting and tint color for the passthrough feed.
We can use this modifier to access the geometry of a view without using GeometryReader.
This component provides access to aspect ratio, image size, and the size of the presentation in our scene.
We can pre or post-generate Spatial Scenes, depending on the needs of our app.
There are two events we can use to listen for changes to viewing mode, with some caveats.
The available viewing modes depend on the type of image the component is presenting.
This component allows us to display Standard and Spatial Photos. We can also generate Spatial Scenes from existing photos.
The OnCollision Behavior can fire a Timeline when colliding with more than one Entity.
We can use Behaviors in a parent scene to trigger Timelines in a child scene.
We can next Timelines in others to group actions into small reusable sequences.
We can trigger more than one Behavior/Timeline using a single notification, even when the timelines are defined in different files.