Skip to content

Instantly share code, notes, and snippets.

@delasign
Created January 1, 2025 16:40
Show Gist options
  • Select an option

  • Save delasign/bbee7bccef3c25abbcd040c14cc5b69c to your computer and use it in GitHub Desktop.

Select an option

Save delasign/bbee7bccef3c25abbcd040c14cc5b69c to your computer and use it in GitHub Desktop.
Sample code for using RealityKit Content in SceneKit
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