# How to check if an event has a loop region

**URL:** <https://qa.fmod.com/t/how-to-check-if-an-event-has-a-loop-region/11812>\
**Category:** Unity\
**Created:** [January 28, 2015, 3:09pm UTC](https://qa.fmod.com/t/how-to-check-if-an-event-has-a-loop-region/11812 "2015-01-28T15:09:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsilvestrim](https://avatars.discourse-cdn.com/v4/letter/f/aeb1de/32.png) [@fsilvestrim](https://qa.fmod.com/u/fsilvestrim)\
**Post date:** [January 28, 2015, 3:09pm UTC](https://qa.fmod.com/t/how-to-check-if-an-event-has-a-loop-region/11812/1 "2015-01-28T15:09:54Z")

</div>

Hello guys, quick question:

Is there any way of checking if an event (vis it’s instance or descriptor) has any loop region?

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [January 28, 2015, 10:52pm UTC](https://qa.fmod.com/t/how-to-check-if-an-event-has-a-loop-region/11812/2 "2015-01-28T22:52:05Z")

</div>

Would EventDescription::isOneshot() work for you? Event’s with a loop region will return false.

---

<div class="post-metadata">

**Author:** ![fsilvestrim](https://avatars.discourse-cdn.com/v4/letter/f/aeb1de/32.png) [@fsilvestrim](https://qa.fmod.com/u/fsilvestrim)\
**Post date:** [January 30, 2015, 6:06pm UTC](https://qa.fmod.com/t/how-to-check-if-an-event-has-a-loop-region/11812/3 "2015-01-30T18:06:01Z")

</div>

> [@](#):
>
> Would EventDescription::isOneshot() work for you? Event’s with a loop region will return false.

Indeed that’s how I was trying… but for some reason if an event instance from a Description is already playing and I try to get the description again (with StudioSystem.getEventByID()) sometimes the isOneshot was returning true, and some time false. I think it might be a bug. For now I’m caching the isOneShot at the beginning and then it works as expected.

Thanks.
