Enum ChatChannel.ChatType
Defines whether channels are Global or Local.
Namespace: LlamaSoftware.Chat.Model
Assembly: LlamaSoftware.Chat.Model.dll
Syntax
public enum ChatType
Fields
Name | Description |
---|---|
GLOBAL | All messages are sent to all players subscribed to that channel, regardless of distance from one another. Think like MMO "World" chat. This is the most common use case. |
LOCAL | Only messages within the LocalOverlapRadius are sent to players who are subscribed to the chat channel. This is useful for chat channels like MMO "say" chat channel. This has some performance overhead because UnityEngine.Physics.OverlapSphere(UnityEngine.Vector3,System.Single) is used (server side only). Because of this you should carefully define what is on the same Layer as Players to make this check as performant as possible. |