fadeOpacity(to:duration:)
Creates an action that adjusts the opacity of a node to a new value.
Declaration
class func fadeOpacity(to opacity: CGFloat, duration sec: TimeInterval) -> SCNActionParameters
- opacity:
The new opacity value of the node.
- sec:
The duration, in seconds, of the animation.
Return Value
A new action object.
Discussion
When the action executes, the node’s opacity property animates to its new value.
This action is not reversible; the reverse of this action has the same duration but does not change anything.