Unity Chat Bubbles

Independent
Unity Asset Developer
1
5 Months
Unity • C# • Editor

A lightweight Unity UI utility for rendering chat-style message bubbles inside a ScrollRect.
It handles only the view layer of a chat or dialogue system, keeping gameplay, networking, and data logic fully decoupled.

Links

Project Repository

Key Features

  • Focused on simplicity, customization, and fast iteration.
  • Automatically generates sent and received chat bubbles and places them inside a ScrollRect.
  • Manages layout, spacing, and resizing without manual UI wiring.
  • Exposes a deliberately minimal public API:
1AppendMessage(string message, BubbleType bubbleType);
2ClearMessages();
  • Fully customizable through prefabs, not code.
  • ReceivedMessage_Default.prefab is a variant of SentMessage_Default.prefab, ensuring visual consistency with easy overrides.
  • Layout controlled via Unity’s HorizontalLayoutGroup and VerticalLayoutGroup.
  • 9-sliced sprites recommended for scalable chat bubbles.
  • Includes editor tools to preview chat bubbles without entering Play Mode:
    • Add Test Chats
    • Clear Test Chats
  • Includes a sample scene for reference.