文档

​
​

Development

User Acquisition

Monetization

工业

Authentication for Unreal Engine

Authentication for Unreal Engine

Multiplayer Services for Unreal
​
​
Authentication for Unreal
  • Overview
  • 开始使用
  • 身份验证生命周期
  • 玩家配置文件
  • 玩家偏好设置
  • 使用 C++ 集成
  • 使用蓝图集成
C++ API Reference
  • Authentication API
    • AuthenticationBlueprintApi
    • AuthenticationErrorCodes
    • AuthenticationStates
    • AuthenticationSubsystem
    • Authentication.Models
      • AuthenticationResponse
      • AuthenticationPlayerProfileChangedResponse
      • AuthenticationPlayerProfileDeletedResponse
      • AuthenticationSignInOptions
      • AuthenticationStateChangedResponse
      • AuthenticationUserResponse
  • Services.Core API
  1. 适用于 Unreal Engine 的 Authentication SDK

结构 AuthenticationResponse

Reference the data structure for authentication service responses.
阅读时间2 分钟
最后更新于 8 个月前

镜像来自 Unity Authentication 服务的 API 响应。
Include(包括)
#include "Models/AuthenticationResponse.h"
语法
USTRUCT(BlueprintType)struct AUTHENTICATION_API FAuthenticationResponse

字段

WasSuccessful

响应是否成功。

声明

bool bWasSuccessful = false

蓝图

Name

类型

默认值

蓝图属性类型

蓝图属性类别

Was Successful(已成功)布尔值
false
BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

默认值

bWasSuccessful
bool
false

UserId

生成的用户 ID。

声明

FString UserId

蓝图

Name

类型

蓝图属性类型

蓝图属性类别

User Id(用户 ID)字符串BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

UserId
FString

AccessToken

生成的身份验证访问令牌。

声明

FString AccessToken

蓝图

Name

类型

蓝图属性类型

蓝图属性类别

Access Token(访问令牌)字符串BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

AccessToken
FString

SessionToken

生成的身份验证会话令牌。此令牌可用于让用户再次登录。

声明

FString SessionToken

蓝图

Name

类型

蓝图属性类型

蓝图属性类别

Session Token(会话令牌)字符串BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

SessionToken
FString

AuthorizedTime

发送响应的时间。

声明

FDateTime AuthorizedTime

蓝图

Name

类型

蓝图属性类型

蓝图属性类别

Authorized Time(授权时间)日期时间结构BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

AuthorizedTime
FDateTime

ExpiresIn

发送响应的时间。

声明

int32 ExpiresIn = 0

蓝图

Name

类型

默认值

蓝图属性类型

蓝图属性类别

Expires In(到期时间)整数
0
BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

默认值

ExpiresIn
int32
0

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Include(包括)

    • 语法

    • 字段

      • WasSuccessful

        • 声明

        • 蓝图

        • C++

      • UserId

        • 声明

        • 蓝图

        • C++

      • AccessToken

        • 声明

        • 蓝图

        • C++

      • SessionToken

        • 声明

        • 蓝图

        • C++

      • AuthorizedTime

        • 声明

        • 蓝图

        • C++

      • ExpiresIn

        • 声明

        • 蓝图

        • C++


报告此页面的问题