# Destionation marker callbacks not working with transition markers

**URL:** <https://qa.fmod.com/t/destionation-marker-callbacks-not-working-with-transition-markers/14362>\
**Category:** Unity\
**Created:** [February 10, 2019, 2:27pm UTC](https://qa.fmod.com/t/destionation-marker-callbacks-not-working-with-transition-markers/14362 "2019-02-10T14:27:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Affable\_Jordan](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Affable\_Jordan](https://qa.fmod.com/u/Affable_Jordan)\
**Post date:** [February 10, 2019, 2:27pm UTC](https://qa.fmod.com/t/destionation-marker-callbacks-not-working-with-transition-markers/14362/1 "2019-02-10T14:27:55Z")

</div>

I’ve setup some destination markers in an audio event, and am receiving callbacks in my Unity scripts for them _unless_ there is also a transition marker on the exact same moment. It doesn’t seem to matter if the destination marker is above or below the transition marker, it seems to evaluate the transition first, and then never notify my script about the destination. Is this intended behavior, and is there any way to work around it? The sounds I’m working with are very specific, so I really don’t want to have the markers at different times to force the order of operations.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [February 10, 2019, 11:45pm UTC](https://qa.fmod.com/t/destionation-marker-callbacks-not-working-with-transition-markers/14362/2 "2019-02-10T23:45:57Z")

</div>

Hi Affable\_Jordan,

There was a fix in the latest version of FMOD Studio (1.10.11) regarding marker callbacks placed in the lead in and lead out of transition timelines. Please try again using the latest version of FMOD Studio and the FMOD Unity integration and let me know if you’re still experiencing the same issue.

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![Affable\_Jordan](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Affable\_Jordan](https://qa.fmod.com/u/Affable_Jordan)\
**Post date:** [February 11, 2019, 1:44am UTC](https://qa.fmod.com/t/destionation-marker-callbacks-not-working-with-transition-markers/14362/3 "2019-02-11T01:44:02Z")

</div>

Hey Richard,

I just updated my studio build to 1.10.11, and updated my unity integration to be the same, and the issue seems to still be there. I’ve setup my audio event as follows.The destination marker labeled “2” never seems to trigger a callback in code.

 ![Untitled](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/4c81b8b253a76284a879966743153e3216c53e7d.png)

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [February 11, 2019, 6:27am UTC](https://qa.fmod.com/t/destionation-marker-callbacks-not-working-with-transition-markers/14362/4 "2019-02-11T06:27:46Z")

</div>

Thanks for clarifying.

Yes, in these situations the destination markers won’t generate a callback. I have added a suggestion to our task tracker to generate callbacks at the time of a transition. Thank you for bringing this to our attention.

As a workaround, you can nudge all destination markers left by 1 sample. The callbacks are not sample-accurate so it should not affect playback too much. Try the following:

First select the event in the event browser.

Then open Window \> Console and run the following command (you can just copy and paste)

```auto
var ev = studio.window.browserCurrent();

var marker_tracks = ev.markerTracks;

marker_tracks.forEach(function(track) {
    track.markers.forEach(function(marker) {
        if(marker.entity === "NamedMarker") {
            marker.position = marker.position - (1/48000); // nudge left by 1 sample (at 48kHz)
        }
    })
})

```

This should nudge all named markers to the left by 1 sample. This is just enough to allow their callbacks to be generated without affecting any other aspect of the event.

---

<div class="post-metadata">

**Author:** ![Affable\_Jordan](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Affable\_Jordan](https://qa.fmod.com/u/Affable_Jordan)\
**Post date:** [February 15, 2019, 4:31am UTC](https://qa.fmod.com/t/destionation-marker-callbacks-not-working-with-transition-markers/14362/5 "2019-02-15T04:31:00Z")

</div>

Thanks Richard!

I’ve actually managed to extend your idea with some project specific requirements to automate a bunch of work. Works a treat!
