---
title: lastTransition
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/animationgraphcomponent/activestatemachinenode/lasttransition
---

# lastTransition

The ID of the last active transition.

## Declaration

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

## See Also

### Inspecting the node state

- [currentState](realitykit/animationgraphcomponent/activestatemachinenode/currentstate.md)
- [previousState](realitykit/animationgraphcomponent/activestatemachinenode/previousstate.md)
- [wasReset](realitykit/animationgraphcomponent/activestatemachinenode/wasreset.md)
