# Sending markers to Unity?

**URL:** <https://qa.fmod.com/t/sending-markers-to-unity/17313>\
**Category:** FMOD Studio\
**Created:** [June 9, 2021, 10:54am UTC](https://qa.fmod.com/t/sending-markers-to-unity/17313 "2021-06-09T10:54:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shredd](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Shredd](https://qa.fmod.com/u/Shredd)\
**Post date:** [June 9, 2021, 10:54am UTC](https://qa.fmod.com/t/sending-markers-to-unity/17313/1 "2021-06-09T10:54:01Z")

</div>

Hello,

How do I send markers to Unity? I’m using Destination Markers in this music track event, and the idea is to pass these markers labeled “LowBoom” to trigger visual effects at their positions:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/d45b9f870c95feae8c50550b93b1265a031738c0.png)

Our programmer tells me the markers aren’t being passed to Unity, or at least we can’t seem to find where to view them. As a test, we were able to pass beat information (bars and beats), but not the Destination Markers which we need.

Additionally, is there a way to see a list that would contain all the markers present in a given FMOD event? Before actually playing through that event, that is?

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [June 10, 2021, 4:37am UTC](https://qa.fmod.com/t/sending-markers-to-unity/17313/2 "2021-06-10T04:37:51Z")

</div>

An example of how to recieve callbacks when the playback position passes a destination marker can be found in our [Unity integration documentation](https://www.fmod.com/resources/documentation-unity?version=2.02&page=examples-timeline-callbacks.html).

As of the time of writing (June of 2021), there is no way to get a list of the markers in an event via the FMOD API. If you need a list of the destination markers in an event, you will have to obtain it by looking at that event FMOD Studio.

---

<div class="post-metadata">

**Author:** ![willozeas](https://avatars.discourse-cdn.com/v4/letter/w/8edcca/32.png) [@willozeas](https://qa.fmod.com/u/willozeas)\
**Post date:** [June 10, 2021, 4:45am UTC](https://qa.fmod.com/t/sending-markers-to-unity/17313/3 "2021-06-10T04:45:10Z")

</div>

This thread here claims to have a solution to obtaining all the markers present in an event: [Link here](https://qa.fmod.com/t/can-you-access-a-list-of-markers-at-runtime/11819)

I haven’t used it, so I can’t vouch that it works, but it seemed to work for other people.

---

<div class="post-metadata">

**Author:** ![Shredd](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Shredd](https://qa.fmod.com/u/Shredd)\
**Post date:** [June 10, 2021, 8:23am UTC](https://qa.fmod.com/t/sending-markers-to-unity/17313/4 "2021-06-10T08:23:33Z")

</div>

> [@joseph](#):
>
> An example of how to recieve callbacks when the playback position passes a destination marker can be found in our [Unity integration documentation](https://www.fmod.com/resources/documentation-unity?version=2.02&page=examples-timeline-callbacks.html).

When the markers get passed to Unity, where do we view them?

---

<div class="post-metadata">

**Author:** ![Shredd](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Shredd](https://qa.fmod.com/u/Shredd)\
**Post date:** [June 10, 2021, 1:35pm UTC](https://qa.fmod.com/t/sending-markers-to-unity/17313/5 "2021-06-10T13:35:07Z")

</div>

Actually, our programmer got the markers to show up by using that implementation you linked. But right now it’s apparently querying the situation on every frame and we were wondering what’s the best way to do these things.

I’ll rephrase:

What’s the best solution to get a, say, lightning strike to happen whenever a marker is passed from an FMOD event to Unity?

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [June 23, 2021, 5:40am UTC](https://qa.fmod.com/t/sending-markers-to-unity/17313/6 "2021-06-23T05:40:39Z")

</div>

> [@Shredd](#):
>
> What’s the best solution to get a, say, lightning strike to happen whenever a marker is passed from an FMOD event to Unity?

Unfortunately, we don’t currently provide code-level support though this forum.
