[Wwise] Static function not shown in blueprint editor

Hey there,

I am currently working on getting RTPC values from Wwise and use them in UE.

So far I have created a wrapper function, as the GetRTPCValue() function is hidden in the (vanilla) integration.

Wwise uses AkGameplayStatics to make the static functions blueprint-callable and this is where I tried to make my function work.

Here’s the code:

header file:

UFUNCTION(BlueprintCallable, Category = "Audiokinetic")
static void GetGlobalRTPCValue(const FName RTPC, float & value);

source file:

void UAkGameplayStatics::GetGlobalRTPCValue(const FName RTPC, float & value)
{
    FAkAudioDevice * AudioDevice = FAkAudioDevice::Get();
    if (AudioDevice && RTPC.IsValid())
    {
        AudioDevice->GetGlobalRTPCValue(*RTPC.ToString(), value);
    }
}

However, I can not find it in the blueprint editor, though the other functions show up (e.g. Set RTPCValue)

133459-13-47-57+-+thewhiskyway+-+unreal+editor.png

Thanks in advance.

Try changing:

static void GetGlobalRTPCValue(const FName RTPC, float & value);

to:

 static void GetGlobalRTPCValue(const FName &RTPC, float & value);

or:

static void GetGlobalRTPCValue(FName RTPC, float & value);

Sometimes, one is unable to see the forest for the trees… I missed the & for the Fname RTPC.

static void GetGlobalRTPCValue(const FName & RTPC, float & value);

works like a charm.

Thanks =)