【发布时间】:2015-06-24 16:48:59
【问题描述】:
我的SCNAction 不起作用,即使编译器到达那里。这是我创建SCNAction的代码:
println("log 1") //to check the program gets there
let moveInit1: SCNAction = SCNAction.moveTo(SCNVector3Make(0, -3, 0), duration: 1)
moveInit1.timingMode = SCNActionTimingMode.EaseOut
cube.runAction(moveInit1)
println("log 2") //check again
输出是log 1 和log 2,但是没有动画发生...
有人知道为什么吗?
注意
我在另一种方法中有完全相同的代码,它确实有效。
【问题讨论】:
-
如果您使用
let与var进行操作,您确定可以覆盖timingMode?我不认为let属性应该改变。 -
是的,它确实有效,没有给我任何错误。
标签: ios swift animation scenekit