草庐IT

runActionForever

全部标签

ios - 停止/暂停 .runActionForever() SCNAction

如何在没有key的情况下暂停或停止.runActionForever()调用的SCNAction?我看到了使用node.removeActionForKey("action")的选项,但我的SCNAction没有key。这就是我创建它的方式:varturnAction=SCNAction.rotateByX(0,y:1,z:0,duration:1)...以及它的使用方式:node.runAction(SCNAction.repeatActionForever(turnAction))我尝试过的我知道有方法node.removeActionForKey("action")但是当我为我的