---
title: currentState
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/animationgraphcomponent/activestatemachinenode/currentstate
---

# currentState

The ID of the current state.

## Declaration

```swift
var currentState: Int { get }
```

## See Also

### Inspecting the node state

- [previousState](realitykit/animationgraphcomponent/activestatemachinenode/previousstate.md)
- [lastTransition](realitykit/animationgraphcomponent/activestatemachinenode/lasttransition.md)
- [wasReset](realitykit/animationgraphcomponent/activestatemachinenode/wasreset.md)
