Type Method

fadeInWithDuration:

Creates an action that changes the opacity of the node to 1.0.

Declaration

+ (SCNAction *)fadeInWithDuration:(NSTimeInterval)sec;

Parameters

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 from its current value to 1.0.

This action is reversible; the reverse is created as if the following code had been executed:

[SCNAction fadeOutWithDuration: sec];

See Also

Creating Actions That Change a Node’s Opacity

+ fadeOutWithDuration:

Creates an action that changes the opacity of the node to 0.0.

+ fadeOpacityBy:duration:

Creates an action that adjusts the opacity of a node by a relative value.

+ fadeOpacityTo:duration:

Creates an action that adjusts the opacity of a node to a new value.