Post

Replies

Boosts

Views

Activity

Reply to AppDataModel is retained
Here is the memory graph: I've tried canceling the objectCaptureSession : objectCaptureSession?.cancel() objectCaptureSession = nil and detaching the listeners for sub in subscriptions { sub.cancel() } subscriptions = Set<AnyCancellable>() Could it be a leak in the ARCoachingOverlayView?
Topic: Spatial Computing SubTopic: General Tags:
Jul ’23
Reply to HelloWorld example: How to make the globe in immersive space interactable?
To interact with an entity you need to generate collision shapes: let model = try await ModelEntity(named: modelName) model.generateCollisionShapes(recursive: true) model.components.set([InputTargetComponent()]) add a rotate gesture to your reality view .gesture(RotateGesture().targetedToAnyEntity().onChanged({ value in //access the entity targeted with value.entity and the angle with value.rotation.radians })) On a simulator press the option key and rotate.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’24
Reply to StoreKit 2: Newly added subscription not being returned
Hi, Try: 1 - Restart your device 2 - Make sure the new subscription is in the same group as the others 3 - Try it on a real device
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to AppDataModel is retained
Here is the memory graph: I've tried canceling the objectCaptureSession : objectCaptureSession?.cancel() objectCaptureSession = nil and detaching the listeners for sub in subscriptions { sub.cancel() } subscriptions = Set<AnyCancellable>() Could it be a leak in the ARCoachingOverlayView?
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Trouble Getting RealityKit audio to play
Remove the root from the name and you don't need to include the format. Try the following: let audioFilePath = "back-yard-feb-7am"
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to HelloWorld example: How to make the globe in immersive space interactable?
To interact with an entity you need to generate collision shapes: let model = try await ModelEntity(named: modelName) model.generateCollisionShapes(recursive: true) model.components.set([InputTargetComponent()]) add a rotate gesture to your reality view .gesture(RotateGesture().targetedToAnyEntity().onChanged({ value in //access the entity targeted with value.entity and the angle with value.rotation.radians })) On a simulator press the option key and rotate.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24