0

New to Reality Composer and ARKit, using iOS 16

Created a scene with RealityKit, with a sphere in it. Added a custom notification to it, added it, works but it doesn't...

Need to tap hard to get this to fire, and won't fire reliably? What am I missing?

BoardSquare.loadBoardAsync(completion: { ( loading ) in
            switch loading {
            case .success(let boardBoard):
                boardBoard.generateCollisionShapes(recursive: true)
                anchor.addChild(boardBoard)
                
                
                boardBoard.actions.customNotification.onAction = { entity in
                    print("custom action")
                }
                
                anchor.addChild((boardBoard.ball)!)
            case .failure(let error):
                print(error.localizedDescription)
            }
        })
user3069232
  • 8,587
  • 7
  • 46
  • 87

0 Answers0