Is it possible to get region length?

I just started to use fmod and wanted to use marker & callbacks to trigger in game events which i managed to do.
However i can’t figure out how to get the length or end time of a region.
Is it possible ?

You can get the length of a region when using the FMOD Studio application but not at runtime.

Select the region in the event editor and open the console (window > Console).

region = studio.window.editorCurrent(); // Get the selected region
region.length; // How long the region is
region.position; // The start position of the region
region.position + region.length; // The end position of the region

Sorry for reviving an old thread, but we ran into the same issue and had a quick question.

Is it still not possible to pass a region’s length or end time to Unreal Engine at runtime and read that data there? Is this information exposed through FMOD, or would this require modifying the Unreal FMOD plugin?

The FMOD API does not currently have the ability to give you the length of a region at runtime, although there are ways that you could work around this:

  • Add Notes/User Properties to the FMOD Studio Event which can be queried from the API.
  • Add timeline markers to indicate the length of a region.

There may be other ways that people have come up with too.