System/Chat/ChatBubbleBehaviour.cs
@@ -1,5 +1,6 @@ using System.Collections; using System.Collections.Generic; using TableConfig; using UnityEngine; using UnityEngine.UI; @@ -99,6 +100,15 @@ m_BubbleIcon.SetSprite(iconKey); m_Flip.flipHorizontal = requireFlip; m_Target.color = bubble.color; var config = Config.Instance.Get<ChatBubbleBoxConfig>(bubbleId); var position = rect.anchoredPosition; position.y = -config.top; if (rect.anchoredPosition != position) { rect.anchoredPosition = position; } Refresh(); } }