Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Unreal: can you subclass AkAcousticPortal? What about spawning an Acoustic Portal at runtime?

0 votes
I'm trying to figure out how to have my door blueprint automatically have an attached acoustic portal in UE4.26.

There's an AkPortal component, but it doesn't seem to have any geometry to it - no box that I can size and place?

I was thinking I could just make my door a subclass of AkAcousticPortal - but that does not show up as an actor I can subclass in the editor...

Finally, I was thinking I could have the door spawn an AkAcousticPortal actor and size it to match a guide box I attach to my door - but AkAcousticPortal does not show up in the list of actors I can spawn?

Any suggestions?

asked Sep 10, 2021 in General Discussion by Bob S. (220 points)

2 Answers

0 votes
The AkPortal component needs to be attached to a BoxCollisionComponent.  Add the BoxCollisionComponent to your door blueprint and then make your AkPortalComponent a child of that box.  Once you've done that you can resize the BoxComponent and your portal will follow.
answered Sep 21, 2021 by Zachary S. (160 points)
–1 vote
From what I gather, AkAcousticPortals derive from AVolumes which derive from brushes, which cannot be created at runtime unless you're using editor modules.
answered Sep 21, 2021 by Vioxtar (370 points)