---
title: height
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnpyramid/height
---

# height

The extent of the pyramid along its y-axis. Animatable.

## Declaration

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

## Discussion

Discussion The pyramid’s base is centered in its local coordinate system. For example, if you create a pyramid of height 10.0, the y-coordinate of every point in its rectangular base is 0.0 and the y-coordinate of its apex is 10.0. The default height is 1.0. A height of zero or less creates an empty geometry. You can animate changes to this property’s value. See Animating SceneKit Content.

## See Also

### Adjusting a Pyramid’s Dimensions

- [width](scenekit/scnpyramid/width.md)
- [length](scenekit/scnpyramid/length.md)
