---
title: RuntimeOnly
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/events/unityeventcallstate/runtimeonly
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/events/unityeventcallstate/runtimeonly.md
last_updated: 2026-10-07
generated_at: 2026-11-11T08:25:25.049Z
locale: en-us
---

# RuntimeOnly

> Callback is only issued in the Runtime and Editor playmode.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.Events](/engine/7000.0/script-reference/unityengine/events.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
RuntimeOnly = 2
```
