---
title: extrusionDepth
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnshape/extrusiondepth
---

# extrusionDepth

The thickness of the extruded shape along the z-axis. Animatable.

## Declaration

```swift
var extrusionDepth: CGFloat { get set }
```

## Discussion

Discussion The extruded shape is centered at the zero point of its z-axis. For example, an extrusion depth of 1.0 creates a shape that extends from -0.5 to 0.5 along the z-axis. An extrusion depth of zero creates a flat, one-sided shape. You can animate changes to this property’s value. See Animating SceneKit Content.

## See Also

### Modifying a Shape

- [path](scenekit/scnshape/path.md)
