Documentation

Support

Matchmaker

Matchmaker

Class UMatchmakerClientBlueprintUtil

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

Include
#include <MatchmakerClient/Public/Utils/MatchmakerClientBlueprintUtil.h>
Syntax
UCLASS()class UMatchmakerClientBlueprintUtil : public UBlueprintFunctionLibrary
Inherits from UBlueprintFunctionLibrary

Methods

PlayerCustomDataAddStringData(FMatchmakerPlayer&, FString, FString)

Adds a string of custom data to a player's CustomData field.

Declaration

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool PlayerCustomDataAddStringData(UPARAM(ref) FMatchmakerPlayer& Player, FString Key, FString Value)

Parameters

Name

Type

Description

Player
FMatchmakerPlayer
&
The matchmaker player to add custom data to.
Key
FStringThe key for the custom data.
Value
FStringThe string value to add for the custom data.

Returns

Type

Description

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

PlayerCustomDataAddNumberData(FMatchmakerPlayer&, FString, float)

Adds a number of custom data to a player's CustomData field.

Declaration

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool PlayerCustomDataAddNumberData(UPARAM(ref) FMatchmakerPlayer& Player, FString Key, float Value)

Parameters

Name

Type

Description

Player
FMatchmakerPlayer
&
The matchmaker player to add custom data to.
Key
FStringThe key for the custom data.
Value
float
The number value to add for the custom data.

Returns

Type

Description

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

PlayerCustomDataRemoveData(FMatchmakerPlayer&, FString)

Removes a custom data field from a MatchmakerPlayer's CustomData.

Declaration

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool PlayerCustomDataRemoveData(UPARAM(ref) FMatchmakerPlayer& Player, FString Key)

Parameters

Name

Type

Description

Player
FMatchmakerPlayer
&
The Matchmaker Player to remove data from.
Key
FStringThe Key for the data to remove.

Returns

Type

Description

bool
Returns
true
if the MatchmakerPlayer
CustomData
contained the field and it was removed, or
false
if it didn't contain the field.

CreateTicketOptionsAddStringAttribute(FCreateTicketOptions&, FString, FString)

Adds a string attribute to a CreateTicketOptions.

Declaration

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

Parameters

Name

Type

Description

Options
FCreateTicketOptions
&
The 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.

CreateTicketOptionsAddNumberAttribute(FCreateTicketOptions&, FString, float)

Adds a number attribute to a
CreateTicketOptions
.

Declaration

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

Parameters

Name

Type

Description

Options
FCreateTicketOptions
&
The 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 custom data was successfully added,
false
if not.

CreateTicketOptionsRemoveAtrribute(FCreateTicketOptions&, FString)

Removes an attribute from CreateTicketOptions.

Declaration

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

Parameters

Name

Type

Description

Options
FCreateTicketOptions
&
The 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.