menu
 

Audiokinetic의 커뮤니티 Q&A는 사용자가 Wwise와 Strata 커뮤니티 내에서 서로 질문과 답변을 하는 포럼입니다. Audiokinetic의 기술 지원팀에게 문의하고 싶으신 경우 지원 티켓 페이지를 사용해주세요.

+2 투표

int32 UAkComponent::PostAkEvent( class UAkAudioEvent * AkEvent, const FString& in_EventName )

{

return PostAkEventByName(GET_AK_EVENT_NAME(AkEvent, in_EventName));

}

This function has two parameters AkEvent and in_EventName. I don't understand it, whats the point of defining event string if you already gave event object to function, and viceversa?

General Discussion Nikola L. (140 포인트) 로 부터
This is quite the discussion here at the moment. Anyone have any answers on this?
You can either pass the event using a pointer to a valid UAkAudioEvent instance, or it will read the event name from the second parameter and use that instead.

You only have to provide one parameter. Use either:

PostAkEvent(MyEvent, FString());

or:

PostAkEvent(nullptr, TEXT("My Event"))

It may be like this for backward compatibility reasons, not sure. It is definitely confusing.

1 답변

–3 투표
Event Name is an OUT PARAMETER! it will give YOU the Event Name you dont need to submit the FString
Alexis S. (90 포인트) 로 부터
You are incorrect. The string is passed as a const ref. When you dig into what happens later, you'll discover both the event and the event name are passed into a GET_AK_EVENT_NAME macro which either extracts the name from the event pointer, or uses the fstring if the pointer is nullptr.
...