---
title: pointerLockState
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiscene/pointerlockstate
---

# pointerLockState

The pointer lock state for the scene.

## Declaration

```swift
var pointerLockState: UIPointerLockState? { get }
```

## Discussion

Discussion If a scene can’t lock the pointer, this property is nil.

## See Also

### Getting the pointer lock state

- [UIPointerLockState](uikit/uipointerlockstate.md)
