docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ChatRole

    Who authored a message in a conversation.

    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public enum ChatRole
    Remarks

    Deliberately wider than ChatMessageRole. A message can come from the system, but a system message is never drawn as a bubble — ChatMessages renders it as a destructive banner — so the bubble's own role enum stays two-valued.

    Fields

    Name Description
    Assistant

    The agent answering.

    System

    The application itself, reporting something out of band such as a failure.

    User

    The person talking to the agent.

    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)