Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
の色の変化をアニメーション化するにはどうすればよいSCNNodeですか? ではSpriteKitを使用しますが、colorizeWithColor SKActionではオプションではありませんSceneKit。ではSpriteKit、通常、2 つのノード間で衝突が発生します。ノードが衝突すると、colorizeWithColor SKAction. のこれに相当するものは何SceneKitですかSCNNode?
SCNNode
SpriteKit
colorizeWithColor SKAction
SceneKit
マテリアルのプロパティを使用して multiply、同様の効果を得ることができます。SCNTransactionのプロパティでフェードの長さを設定できanimationDurationます。
multiply
SCNTransaction
animationDuration
SCNTransaction.begin() SCNTransaction.animationDuration = yourFadeDuration geometry?.firstMaterial?.multiply.contents = yourDesiredColor SCNTransaction.commit()