Post

Replies

Boosts

Views

Activity

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 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