How to inherit audio components?

I want to inherit from the audio component class to disable its Tick option, but for some reason, it doesn’t appear in the class list. Does anyone know how this could be done? If it’s possible with Niagara, there’s no reason it shouldn’t be possible with audio.

Hello!

Audio Component can’t be inherited as BP because it is set as a MinimalAPI class. If your project uses C++, you could inherit it as a C++ class.
However, you can also simply disable the tick on the audio component directly in the actor that contains the component, either with the “Set Component Tick Enabled” node, or by disabling “Start With Tick Enabled” in the component’s Details panel.

Do i need to do that for every single audio component? That is very inconvenient. What is the reason for specifically restricting inheritance for this class alone? Is it simply an oversight?

At the very least, you’d need to do it for every actor class that owns an audio component that you want to stop from ticking. If you have a base actor class that owns an audio component and then your other actor classes inherit from that, you could do it on just that base actor class.

There’s a hacky way to make a “wrapper” component that does it, and you add that to your actors instead of the regular audio component. To be fully transparent, I don’t really recommend this method because it “hides” the actual component, and the logic in my screenshot doesn’t actually fully set up the added audio component, you’d need to copy variable used by the original audio component class and pass it from the wrapper. It might behave unpredictably.

If there’s no other way, then I’ll do it. But it’s a truly strange restriction.