---
title: delegate
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skscene/delegate
---

# delegate

A delegate to be called during the animation loop.

## Declaration

```swift
weak var delegate: (any SKSceneDelegate)? { get set }
```

## Discussion

Discussion When a delegate is present, when any of the animation loop methods steps are executed, your delegate is called. Typically, you use a delegate when you do not want to implement a scene subclass or if you want to dynamically change the scene behavior at runtime.

## See Also

### Configuring a Delegate

- [Subclassing Scenes Versus Assigning a Delegate](spritekit/subclassing-scenes-versus-assigning-a-delegate.md)
- [SKSceneDelegate](spritekit/skscenedelegate.md)
