---
title: "OnActionReceived()"
content_type: tutorial
url: "https://learn.unity.com/tutorial/onactionreceived?language=en"
language: en
difficulty: intermediate
duration_minutes: 20
unity_version:
  - "2019.3"
supported_unity_versions:
  - name: "2019.3"
    url: "https://learn.unity.com/tutorial/onactionreceived.md?language=en&version=2019.3"
last_updated: "2026-08-04T14:23:20.000Z"
---

# OnActionReceived()

Learn how to create and use the OnActionReceived method in your Unity script.

In this tutorial you will learn how to create the OnActionReceived function.

## OnActionReceived(): Part 1

[Video](https://connect-mediagw.unity.com/h1/20200525/videos/dc046e4e-6b7d-4a5c-8ace-53fa08b4d393_03_hummingbirdagent.cs_07.mp4) ([Transcript (en)](https://connect-mediagw.unity.com/h1/20200729/3a87f61c-314a-4f82-8dc1-d58159b57b58_03_hummingbirdagent_6.vtt))

## OnActionReceived(): Part 2

[Video](https://connect-mediagw.unity.com/h1/20200525/videos/70d21018-3044-42b8-9452-ab3f86e4fb16_03_hummingbirdagent.cs_08.mp4) ([Transcript (en)](https://connect-mediagw.unity.com/h1/20200729/cf0ec569-f57e-4ed8-bbb0-6ba311d355ed_03_hummingbirdagent_7.vtt))
