当我使用SceneKit的resumeAnimation(forKey:)
实例方法时
model.resumeAnimation(forKey: "run")
Xcode 11.7显示以下消息:
//
// 'resumeAnimation(forKey:)' was deprecated in macOS 10.13:
// Use -[SCNAnimationPlayer setPaused:] instead.
//
问题:
如何使用[SCNAnimationPlayer setPaused:]
代替resumeAnimation(forKey:)
?
(可用替换名称不为key
的参数)