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