结构 AuthenticationResponse
Reference the data structure for authentication service responses.
镜像来自 Unity Authentication 服务的 API 响应。
Include(包括)
#include "Models/AuthenticationResponse.h"
语法
USTRUCT(BlueprintType)struct AUTHENTICATION_API FAuthenticationResponse
字段
WasSuccessful
响应是否成功。
声明
bool bWasSuccessful = false
蓝图
Name | 类型 | 默认值 | 蓝图属性类型 | 蓝图属性类别 | |
|---|
| Was Successful(已成功) | 布尔值 | | BlueprintReadOnly | Unity Gaming Services(Unity 游戏服务) | Authentication |
C++
UserId
生成的用户 ID。
声明
蓝图
Name | 类型 | 蓝图属性类型 | 蓝图属性类别 | |
|---|
| User Id(用户 ID) | 字符串 | BlueprintReadOnly | Unity Gaming Services(Unity 游戏服务) | Authentication |
C++
AccessToken
生成的身份验证访问令牌。
声明
蓝图
Name | 类型 | 蓝图属性类型 | 蓝图属性类别 | |
|---|
| Access Token(访问令牌) | 字符串 | BlueprintReadOnly | Unity Gaming Services(Unity 游戏服务) | Authentication |
C++
SessionToken
生成的身份验证会话令牌。此令牌可用于让用户再次登录。
声明
蓝图
Name | 类型 | 蓝图属性类型 | 蓝图属性类别 | |
|---|
| Session Token(会话令牌) | 字符串 | BlueprintReadOnly | Unity Gaming Services(Unity 游戏服务) | Authentication |
C++
AuthorizedTime
发送响应的时间。
声明
蓝图
Name | 类型 | 蓝图属性类型 | 蓝图属性类别 | |
|---|
| Authorized Time(授权时间) | 日期时间结构 | BlueprintReadOnly | Unity Gaming Services(Unity 游戏服务) | Authentication |
C++
ExpiresIn
发送响应的时间。
声明
蓝图
Name | 类型 | 默认值 | 蓝图属性类型 | 蓝图属性类别 | |
|---|
| Expires In(到期时间) | 整数 | | BlueprintReadOnly | Unity Gaming Services(Unity 游戏服务) | Authentication |
C++