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

# height

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

## Declaration

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

## Discussion

Discussion The box is centered in its local coordinate system. For example, a box of height 10.0 extends from -5.0 to 5.0 along the y-axis. The default width 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 Box’s Dimensions

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