docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UserAccount

    One switchable account in a UserSwitcher.

    Inheritance
    object
    UserAccount
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public class UserAccount

    Fields

    color

    The account's identity colour, backing the initials. Typically a stable hash of the person, so they keep one colour everywhere.

    Declaration
    public Optional<Color> color
    Field Value
    Type Description
    Optional<Color>

    disabled

    When true the row cannot be selected: it is dimmed and shows a warning marker. Use it for accounts the user can see but not switch to, such as an org without the required licence.

    Declaration
    public bool disabled
    Field Value
    Type Description
    bool

    email

    The account's email address, if there is one.

    Declaration
    public string email
    Field Value
    Type Description
    string

    id

    A stable identifier. This is what accountSelected reports.

    Declaration
    public string id
    Field Value
    Type Description
    string

    name

    The display name, shown on the row and used for the initials.

    Declaration
    public string name
    Field Value
    Type Description
    string

    portrait

    The profile image. Falls back to the initials when unset.

    Declaration
    public Background portrait
    Field Value
    Type Description
    Background

    warning

    Tooltip text explaining why the row is disabled.

    Declaration
    public string warning
    Field Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2026 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)