すべてを統合する - フレンドとプレイする - (Unreal Engine モジュール)
Last updated on May 30, 2024
Connect the UI to invite friend to game session
Open the
InviteToGameSessionWidget_Starter
CPP file and navigate toInviteToSession
function. Add the highlighted lines in the following code:void UInviteToGameSessionWidget::InviteToSession()
{
const UFriendData* FriendData = GetFriendDataFromParentWidget();
if (!FriendData)
{
return;
}
Subsystem->SendGameSessionInvite(GetOwningPlayer(), FriendData->UserId);
...
}
Resources
- The files used in this tutorial section are available in the Unreal Byte Wars GitHub repository.