类 UMatchmakerServerBlueprintUtil
Review the utility functions available for working with the Matchmaker Server Blueprint API.
Include(包括)
#include <MatchmakerServer/Public/Utils/MatchmakerServerBlueprintUtil.h>
语法
UCLASS()class UMatchmakerServerBlueprintUtil : public UBlueprintFunctionLibrary
继承自 UBlueprintFunctionLibrary。
方法
CreateBackfillTicketOptionsAddStringAttribute(FCreateBackfillTicketOptions&, FString, FString)
向 CreateBackfillTicketOptions
添加字符串属性。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateBackfillTicketOptionsAddStringAttribute(UPARAM(ref) FCreateBackfillTicketOptions& Options, FString Key, FString Value)
参数
返回
CreateBackfillTicketOptionsAddNumberAttribute(FCreateBackfillTicketOptions&, FString, float)
向 CreateBackfillTicketOptions
添加数字属性。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateBackfillTicketOptionsAddNumberAttribute(UPARAM(ref) FCreateBackfillTicketOptions& Options, FString Key, float Value)
参数
返回
CreateBackfillTicketOptionsRemoveAttribute(FCreateBackfillTicketOptions&, FString)
从 CreateBackfillTicketOptions
移除一个属性。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateBackfillTicketOptionsRemoveAttribute(UPARAM(ref) FCreateBackfillTicketOptions& Options, FString Key)
参数
返回
类型 | 描述 |
|---|
| 如果 Options 包含该属性并且该属性已被移除,则返回 ;如果不包含该属性,则返回 。 |
DeserializeMatchmakingResults(FString)
将包含匹配结果 JSON 的 FString 转换为 Blueprint 可访问的结构。仅适用于 Multiplay 有效负载分配。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static FMatchmakingResults DeserializeMatchmakingResults(FString JsonValueAsString)
参数
返回