Chat bubble addon for Suriyun's MMORPG Kit Tested on MMORPG Kit v1.70f
- Import the folder
- Done (no configuration necessary)
- Delete the ChatBubble folder
- Open each of your PlayerCharacterEntity prefabs
- Un-tick
Show Chat Bubbles
on each PlayerCharacterEntity component
- Open the ChatBubblePrefab in ChatBubble/Resources
- Make your changes to the prefab
- Do not change prefab name: it must be named
ChatBubblePrefab
and it must be in the Resources folder - If the chat bubble is too high or too low for your characters, you can move the
BubbleRoot
object up or down - The
MessageBubble-Template
object is the template that will be instantiated at runtime to create multiple chat bubbles.
- You can try setting a new sprite on the Image components of the
MessageBubble-Template
andArrow
objects (sliced sprites look best).
- The channel colors will be applied to all the items in the
Tinted Graphics
arrays in theChatBubble
andChatBubbleElement
components - The items in the
Transition Objects
array will be transitioned out when there are no bubbles visible
- By default, the
Arrow
object should be in theTinted Graphics
andTransition Objects
arrays.
- Open the
ChatBubblePrefab
in ChatBubble/Resources - Edit the
Max Bubble Width
field on the ChatBubble component
- Open the ChatBubblePrefab in ChatBubble/Resources
- Change the value of
Min Duration
,Max Duration
andExtra Duration Per Character
on theChatBubble
component.
- The
Extra Duration Per Character
allows longer messages to be displayed for a longer amount of time, measured in seconds per character. Min Duration
is the base duration. IfExtra Duration Per Character
is 0, the total duration will beMin Duration
.Max Duration
is the upper bound on the total duration (so thatExtra Duration Per Character
does not make the duration too long for really long messages).
Change display based on channel (e.g. disable chat bubble for Guild messages, or change color of bubble for Whisper)
- Open the
ChatBubblePrefab
in ChatBubble/Resources - Change the channel message tint colors to whatever you want
- Tick the boxes for the message channels for which you want the bubble to display
(e.g. unticking
Show Guild Bubble
will hide the bubble for Guild chat) - Note that the channel colors will be applied to all the items in the
Tinted Graphics
arrays in theChatBubble
andChatBubbleElement
components
- Change the maximum number of chat bubbles that can show at once: edit
Max Bubbles
on the ChatBubblePrefab - Change how long (in seconds) the transiton animations will take: edit
Transition Duration
on the ChatBubblePrefab Bubbles Must Expire In Order
on the ChatBubblePrefab:
- Because of the
Extra Duration Per Character
, longer messages display for longer than short ones. - This means if you send a long message followed by a short one, the short message may expire before the (older) long one.
- Setting
Bubbles Must Expire In Order
totrue
will prevent this, by waiting to close a given message until after all its previous messages have closed.