How to subclass AmbientSound
To add special playback logics to an AudioComponent contained in a AAmbientSound actor, I tried to subclass AmbientSound through Unreal Editor's Add Code to Project, however the editor complains that "Failed to add class . Failed to automatically compile module." If its not possible, why?
asked May 22 '15 at 03:44 AM in C++ Programming
I'm not sure why - it could have something to do with the "MinimalAPI" specifier in the code.
Anyway AmbientSound is a really thin wrapper around AudioComponent: it'll be easier and more flexible for you to create an Actor Blueprint from scratch, add it an AudioComponent and control it from the actor graph.
Follow this question
Once you sign in you will be able to subscribe for any updates here