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); }
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); }