Created
January 1, 2025 16:40
-
-
Save delasign/bbee7bccef3c25abbcd040c14cc5b69c to your computer and use it in GitHub Desktop.
Sample code for using RealityKit Content in SceneKit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| guard let realityKitFile = BUNDLE_NAME.url(forResource: "FILE_NAME", withExtension: "usdc") else { | |
| fatalError("File doesnt exist") | |
| } | |
| do { | |
| let scene = try SCNScene(url: realityKitFile) | |
| } catch { | |
| // Process Error | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment