---
title: length
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnfloor/length
---

# length

The extent of the floor along its z-axis. Animatable.

## Declaration

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

## Discussion

Discussion The floor is centered in its local coordinate system. For example, a floor of length 10.0 extends from -5.0 to 5.0 along the z-axis. The default width is zero, indicating that the floor’s length is infinite. You can animate changes to this property’s value. See Animating SceneKit Content.

## See Also

### Adjusting a Floor’s Size

- [width](scenekit/scnfloor/width.md)
