Posts

Post not yet marked as solved
0 Replies
450 Views
I'm trying to access .notifications.allNotifications of a scene I'm loading via a UIDocumentPicker.If i'm doing it with a known scene in the XCode bundle it's really straight forward (code snippet below), because I can store them in a global var of type TestScene.NotificationTrigger. As this is defined in TestScene.swift (that XCode creates when you import the Reality Composer scene into the project) it's not obvious if there's a generic type of RealityComposerScene.NotificationTrigger I can cast these to when loading programatically?var allNotificationTriggers: [TestScene.NotificationTrigger]! override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) let testAnchor = try! TestScene.loadScene() allNotificationTriggers = testAnchor.notifications.allNotifications )
Posted Last updated
.
Post not yet marked as solved
0 Replies
889 Views
I've been experimenting with creating interactions on RealityKit scenes i've created in RealityComposer.Based on samples i've got this working:// Setup AR Session let arConfiguration = ARWorldTrackingConfiguration() arConfiguration.planeDetection = .horizontal arView.session.run(arConfiguration) // Load the "Box" scene from the "Experience" Reality File let boxScene = try! Experience.loadBox() boxScene.generateCollisionShapes(recursive: true) let box = boxScene.greybox as? Entity & HasCollision arView.installGestures(for: box!) However, Rotation doesn't seem to do anything. I've tried :arView.installGestures([.scale], for: box!)andarView.installGestures([.translation], for: box!)individually and they both work fine but even if I assert .rotation there appears to be no action on the obvious multi-finger rotate gestures. Do I need to provide a method to handle this or have I mis-understood how this is supposed to work?
Posted Last updated
.
Post marked as solved
2 Replies
2.1k Views
Is there any sample code or pointers for using ARCoachingOverlay in RealityKit? The SwiftStrikeTT sample uses it but, although it builds, crashes the splash screen in Beta3 (iPad).Any pointers appreciated!
Posted Last updated
.
Post not yet marked as solved
1 Replies
683 Views
Since updating to iPadOS beta3, last night, I am unable to load files via Files app or Files API enabled apps. I first noticed it in 'Reality Composer' where I couldn't load previous projects, i'm also unable to create new projects. I tested 3rd party apps like Soulver and they suffer from the same problem.I also tried restarting the device a number of times but to no avail.Any thoughts on how this could be fixed would be greatly appreciated...
Posted Last updated
.