UE4 GetProperty Attenuation Distances without Attenuation Overrides

Hello,

I’d like to do an optimization pass on my audio components by disabling their tick outside of a particular cull distance, which I’d like to have be the UFMODEvent’s default configured falloff distance.

Unfortunately, every time I make an attempt to read this, using Instance->getProperty, I only get -1, despite knowing that falloff is configured, and hearing it in game.

Is there a different manner in which I can achieve this?

Using EventInstance->getProperty is specifically for overrides on that instance, with -1 meaning that the default is being used and it has not been overridden. Although this is not made clear in the documentation, I have added a task to improve this in an upcoming release.

To get the actual default values you will need to use the EventDescription's properties.

1 Like