How do you use Unity on visionOS?

Generated on 8/5/2024

1 search

To use Unity on visionOS, you can follow these steps:

  1. Start with a Compatible App: Begin by running your game as a compatible app on visionOS. This involves compiling the app with the iOS SDK and running it on visionOS as a compatible app. Compatible apps will run in a window on visionOS, and both touch controls and game controllers are available, providing a uniform experience across all platforms.

  2. Convert to a Native App: To convert the app to a native visionOS app, go to the build settings of the app and select the iOS target. Add Apple Vision as a supported destination to compile the app. You might encounter a few compilation errors, but if the app was made for iOS, most of the code should compile.

  3. Rendering Options: For displaying the content of your game on visionOS, you have several options:

    • Render to a CMTL Layer: This can be easily integrated into UIViews.
    • Render Directly to a Relative Texture: Using the new low-level texture API for more control.
  4. Enhance the Rendering: Start with a CM metal layer if it is easier, but it is recommended to move to a low-level texture to get the most control over the rendering.

For more detailed steps and techniques, you can refer to the session Bring your iOS or iPadOS game to visionOS.

Relevant Sessions

These sessions provide a comprehensive guide on how to get started with visionOS and enhance your app for spatial computing.

Bring your iOS or iPadOS game to visionOS

Bring your iOS or iPadOS game to visionOS

Discover how to transform your iOS or iPadOS game into a uniquely visionOS experience. Increase the immersion (and fun factor!) with a 3D frame or an immersive background. And invite players further into your world by adding depth to the window with stereoscopy or head tracking.

Design great visionOS apps

Design great visionOS apps

Find out how to create compelling spatial computing apps by embracing immersion, designing for eyes and hands, and taking advantage of depth, scale, and space. We’ll share several examples of great visionOS apps and explore how their designers approached creating new experiences for the platform.

What’s new in device management

What’s new in device management

Learn about the latest management capabilities for iOS, iPadOS, macOS, and visionOS, then discover the latest changes to Apple Business Manager and Apple School Manager. We’ll also share updates to Activation Lock, SoftwareUpdate, and Safari management.

Platforms State of the Union

Platforms State of the Union

Discover the newest advancements on Apple platforms.

Platforms State of the Union 5-Minute Recap

Platforms State of the Union 5-Minute Recap

Watch a quick recap of the newest advancements on Apple platforms.

Get started with HealthKit in visionOS

Get started with HealthKit in visionOS

Discover how to use HealthKit to create experiences that take full advantage of the spatial canvas. Learn the capabilities of HealthKit on the platform, find out how to bring an existing iPadOS app to visionOS, and explore the special considerations governing HealthKit during a Guest User session. You’ll also learn ways to use SwiftUI, Swift Charts, and Swift concurrency to craft innovative experiences with HealthKit.

Design interactive experiences for visionOS

Design interactive experiences for visionOS

Learn how you can design a compelling interactive narrative experience for Apple Vision Pro from the designers of Encounter Dinosaurs. Discover how these types of experiences differ from existing apps, media, and games, and explore how to design narratives that bring audiences into new worlds. Find out how you can create stories that adapt to any space and size, provide multiple levels of interaction to make them accessible to all, and use animation, spatial audio, and custom gestures to further immerse people in your experience.