1
在這裏,我有一組上SCNSphere
作用的動畫稱爲testNode
如何檢查是否SCNAction斯威夫特卡倫特3已經完成
//run this during the duration of the two animations below
earthNode.runAction(SCNAction.rotateBy(x: 0, y: 5, z: 5, duration: 4))
//run this action right away
earthNode.runAction(SCNAction.moveBy(x: 0, y: 0, z: -5, duration: 2))
//RUN THIS ACTION AFTER ACTION ABOVE IS COMPLETED
earthNode.runAction(SCNAction.moveBy(x: 0, y: 0, z: 5, duration: 2))
我試圖從在同一時間發生停止最後兩個動畫。我如何檢查第二個動畫是否完成,然後運行列出的最後一個動畫。我也希望能解釋一下檢查一組同時運行的動畫是否完成。
正是我需要的感謝! – Tim2799
不客氣;] –