I’m porting a plugin module. It is an audio plugin. On module load it is trying to create a singleton instance of a uactorcomoponent that it uses both in editor and in gameplay. The component is an audio emitter component.
In edit mode, this singleton audio emitter is used to audition sounds.
In gameplay mode it is used as the “default 2d emitter”. The emitter you play sounds on when you want them to play in stereo with no 3d positioning.
In StartupModule I’ve tried to…
- New up an instance of my UAudioEmitterCom. Crash.
- Call UWorld::CreateWorld(EWorldType::None, false, FName(“Default2dEmitterWorld”));. Crash.
Any have any ideas? Maybe an example of some other source code I could use for inspiration?