---
title: ClothSimulationEvents.BeforeUpdate
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/clothsimulationevents/beforeupdate
---

# ClothSimulationEvents.BeforeUpdate

An event type that a cloth simulation publishes immediately before performing an update.

## Declaration

```swift
struct BeforeUpdate
```

## Topics

### Inspecting the update

- [simulationEntity](realitykit/clothsimulationevents/beforeupdate/simulationentity.md)
- [updateCount](realitykit/clothsimulationevents/beforeupdate/updatecount.md)

### Instance Properties

- [deltaTime](realitykit/clothsimulationevents/beforeupdate/deltatime.md)

## Relationships

### Conforms To

- [Event](realitykit/event.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Observing simulation events

- [ClothSimulationEvents.Start](realitykit/clothsimulationevents/start.md)
- [ClothSimulationEvents.AfterUpdate](realitykit/clothsimulationevents/afterupdate.md)
