Example #1
0
 private void AddChatJump()
 {
     scrollSystem.Add("Chat", new ChatData {
         msg = inputField_ChatContent.text
     }, data =>
     {
         return(new Vector2(0, scrollSystem.GetPreferHeightByString("Chat", (data as ChatData).msg)));
     });
     scrollSystem.Jump(1);
 }