Documentation

Support

Matchmaker

Matchmaker

Class UMatchmakerServerBlueprintUtil

Review the utility functions available for working with the Matchmaker Server Blueprint API.
Read time 2 minutesLast updated 2 days ago

Include
#include <MatchmakerServer/Public/Utils/MatchmakerServerBlueprintUtil.h>
Syntax
UCLASS()class UMatchmakerServerBlueprintUtil : public UBlueprintFunctionLibrary
Inherits from UBlueprintFunctionLibrary.

Methods

CreateBackfillTicketOptionsAddStringAttribute(FCreateBackfillTicketOptions&, FString, FString)

Adds a string attribute to
CreateBackfillTicketOptions
.

Declaration

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateBackfillTicketOptionsAddStringAttribute(UPARAM(ref) FCreateBackfillTicketOptions& Options, FString Key, FString Value)

Parameters

Name

Type

Description

Options
FCreateBackfillTicketOptions
&
The Backfill Ticket Options to add an attribute to.
Key
FStringThe key for the attribute.
Value
FStringThe string value to add for the attribute.

Returns

Type

Description

bool
Returns
true
if the attribute was successfully added,
false
if not.

CreateBackfillTicketOptionsAddNumberAttribute(FCreateBackfillTicketOptions&, FString, float)

Adds a number attribute to
CreateBackfillTicketOptions
.

Declaration

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateBackfillTicketOptionsAddNumberAttribute(UPARAM(ref) FCreateBackfillTicketOptions& Options, FString Key, float Value)

Parameters

Name

Type

Description

Options
FCreateBackfillTicketOptions
&
The backfill ticket options to add an attribute to.
Key
FStringThe Key for the attribute.
Value
float
The number value to add for the attribute.

Returns

Type

Description

bool
Returns
true
if the attribute was successfully added,
false
if not.

CreateBackfillTicketOptionsRemoveAttribute(FCreateBackfillTicketOptions&, FString)

Removes an attribute from
CreateBackfillTicketOptions
.

Declaration

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateBackfillTicketOptionsRemoveAttribute(UPARAM(ref) FCreateBackfillTicketOptions& Options, FString Key)

Parameters

Name

Type

Description

Options
FCreateBackfillTicketOptions
&
The Backfill Ticket Options to remove an attribute from.
Key
FStringThe Key for the attribute to remove.

Returns

Type

Description

bool
Returns
true
if Options contained the attribute and it was removed, or
false
if it didn't contain the attribute.

DeserializeMatchmakingResults(FString)

Converts an FString containing JSON for Matchmaking Results to the Blueprint accessible struct. For use only with Multiplay Payload Allocation.

Declaration

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static FMatchmakingResults DeserializeMatchmakingResults(FString JsonValueAsString)

Parameters

Name

Type

Description

JsonValueAsString
FStringThe JSON string to deserialize.

Returns

Type

Description

FMatchmakingResultsThe deserialized MatchmakingResults.

Class UMatchmakerServerBlueprintUtil • Matchmaker • Unity Docs