Contents

scale

The scale factor applied to the node. Animatable.

Declaration

var scale: SCNVector3 { get set }

Discussion

Each component of the scale vector multiplies the corresponding dimension of the node’s geometry. The default scale is 1.0 in all three dimensions. For example, applying a scale of (2.0, 0.5, 2.0) to a node containing a cube geometry reduces its height and increases its width and depth. Scaling is applied relative to the node’s pivot property.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Related Documentation

Managing the Node’s Transform (SceneKit Types)