docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    GDK account attributes reference

    Understand the attributes available on GDK accounts when using the Platform Toolkit package.

    Usage

    You can use HasAttribute and GetAttribute on any IAccount object to make sure the attribute exists for the platform.

    Attributes available on GDK

    The following table lists the attributes available on GDK accounts:

    Attribute name Type Exceptions thrown Description
    GamertagModern string Returns XUserGetGamertag with XUserGamertagComponent set to Modern.
    GamertagModernSuffix string Returns XUserGetGamertag with XUserGamertagComponent set to ModernSuffix.
    GamertagUniqueModern string Returns XUserGetGamertag with XUserGamertagComponent set to UniqueModern.
    GamertagClassic string Returns XUserGetGamertag with XUserGamertagComponent set to Classic.
    GamerPictureSmall Texture2D TemporarilyUnavailableException Returns XUserGetGamerPictureAsync with XUserGamerPictureSize set to Small.
    GamerPictureMedium Texture2D TemporarilyUnavailableException Returns XUserGetGamerPictureAsync with XUserGamerPictureSize set to Medium.
    GamerPictureLarge Texture2D TemporarilyUnavailableException Returns XUserGetGamerPictureAsync with XUserGamerPictureSize set to Large.
    GamerPictureExtraLarge Texture2D TemporarilyUnavailableException Returns XUserGetGamerPictureAsync with XUserGamerPictureSize set to ExtraLarge.
    XUserLocalId ulong Returns XUserLocalId.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)