Skip to main content

Unreal Engine Plugin

Built with Audius

This Audius Music Unreal Engine Plugin was built by the community!


Useful Links


Usage

In Editor

Drag the Audius_Player_Actor into your level and configure options.

This example uses port 5173 on localhost.

actor.png

C++ Usage

Add "Audius" to the PublicDependencyModuleNames in your _project_.Build.cs

PublicDependencyModuleNames.AddRange(new string[] {
"Core",
"CoreUObject",
"Engine",
"InputCore",
"HeadMountedDisplay",
"GameplayTags",
"Audius"
});
#include "Audius_Actor_Base.h"
#include "Kismet/GameplayStatics.h"
FTransform Audius_Actor_SpawnTransform(FRotator::ZeroRotator, FVector::ZeroVector);
AAudius_Actor_Base* Audius_Actor_Base = Cast<AAudius_Actor_Base>(UGameplayStatics::BeginDeferredActorSpawnFromClass(this, AAudius_Actor_Base::StaticClass(), Audius_Actor_SpawnTransform));

if (Audius_Actor_Base != nullptr) {

Audius_Actor_Base->Audius_Actor_Type = EAudius_Actor_Type::Player;
Audius_Actor_Base->Audius_Queue_Ended_Action = EAudius_Queue_Ended_Action::Replay;
Audius_Actor_Base->Audius_Default_Stream = EAudius_Default_Stream::Trending_Underground;
Audius_Actor_Base->Audius_Auto_Play = false;

UGameplayStatics::FinishSpawningActor(Audius_Actor_Base, Audius_Actor_SpawnTransform);

}