<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/RealityRenderer/MetalEventAction",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation0A8RendererC16MetalEventActionV"
  },
  "title" : "RealityRenderer.MetalEventAction"
}
-->

# RealityRenderer.MetalEventAction

The structure describing an event and value to be signaled or waited for.

```
struct MetalEventAction
```

## Topics

### Instance Properties

[`let event: any MTLEvent`](/documentation/RealityKit/RealityRenderer/MetalEventAction/event)

The metal event object to be signaled or waited for.

[`let value: UInt64`](/documentation/RealityKit/RealityRenderer/MetalEventAction/value)

The value to be signaled or waited for.

### Type Methods

[`static func signal(any MTLEvent, value: UInt64) -> RealityRenderer.MetalEventAction`](/documentation/RealityKit/RealityRenderer/MetalEventAction/signal(_:value:))

Returns an action that represents signaling event with the value.

[`static func wait(for: any MTLEvent, value: UInt64) -> RealityRenderer.MetalEventAction`](/documentation/RealityKit/RealityRenderer/MetalEventAction/wait(for:value:))

Returns an action that represents waiting for an event to reach the value.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)