# Trigger function in unity

**URL:** <https://forum.convai.com/t/trigger-function-in-unity/1744>\
**Category:** Unity SDK\
**Tags:** unity, question\
**Created:** [September 23, 2024, 4:06am UTC](https://forum.convai.com/t/trigger-function-in-unity/1744 "2024-09-23T04:06:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 23, 2024, 4:06am UTC](https://forum.convai.com/t/trigger-function-in-unity/1744/1 "2024-09-23T04:06:21Z")

</div>

**Original Discord Post by holiday\_29398 | 2024-09-23 04:06:21**

Hi, I noticed that there are some updates in trigger method (spatial, time, event-based). I am wondering if there is more detailed documentation or tutorial for how to designing each of these three types of triggers in playground as well as intergrating into unity. Thank you.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 27, 2024, 6:15am UTC](https://forum.convai.com/t/trigger-function-in-unity/1744/2 "2024-09-27T06:15:53Z")

</div>

**Reply by holiday\_29398 | 2024-09-27 06:15:53**

Hi, anyone can help? \<@1023671043287699568\>

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 27, 2024, 6:33am UTC](https://forum.convai.com/t/trigger-function-in-unity/1744/3 "2024-09-27T06:33:41Z")

</div>

**Reply by k3kalinix | 2024-09-27 06:33:41**

> **[Adding Narrative Design to your Character | Documentation](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/adding-narrative-design-to-your-character#step-2-setup-the-narrative-design-component)**
>
> Follow this guide to incorporate Narrative Design into your Convai-powered characters. Follow this step-by-step tutorial, open your project, and let's begin!

**Embedded Content:**  
**Adding Narrative Design to your Character | Documentation**  
Follow this guide to incorporate Narrative Design into your Convai-powered characters. Follow this step-by-step tutorial, open your project, and let’s begin!  
Link: [Adding Narrative Design to your Character | Documentation](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/adding-narrative-design-to-your-character)

 ![Thumbnail](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/9ad6dbd8063682beb1986cfbc66a24ca73fedeee.png)

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 27, 2024, 9:08am UTC](https://forum.convai.com/t/trigger-function-in-unity/1744/4 "2024-09-27T09:08:36Z")

</div>

**Reply by holiday\_29398 | 2024-09-27 09:08:36**

So for the spatial trigger, even just simply write that player reached a certain area, the unity will be able to understand this is the trigger I want to invoke (if I got a lot of spatial triggers) as long as I add the trigger component in unity?

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 1, 2024, 11:07am UTC](https://forum.convai.com/t/trigger-function-in-unity/1744/5 "2024-10-01T11:07:07Z")

</div>

**Reply by k3kalinix | 2024-10-01 11:07:07**

Add a collider in Unity and enable the Is Trigger option.  
Then add NarrativeDesignTrigger component and Spatial Trigger will work.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [November 25, 2024, 12:14pm UTC](https://forum.convai.com/t/trigger-function-in-unity/1744/6 "2024-11-25T12:14:22Z")

</div>

This conversation happened on the Convai Discord Server, so this post will be closed.
