void OnButtonClick() { if (AddToNewSublist) { ListView.AddSublist(); } if (AddAsListOfStrings) { ListView.AddRow(new List <string>() { text1, text2 }); } else { List <UI.MultiListView.Data.Item> items = new List <UI.MultiListView.Data.Item>(); items.Add(new UI.MultiListView.Data.Item(text1)); items.Add(new UI.MultiListView.Data.Item(text2)); if (CreateButton) { UI.MultiListView.Data.Item button = new UI.MultiListView.Data.Item(buttonText, UI.MultiListView.Data.Item.ButtonType.Event); ListView.eventsOnClick.AddListener(EventOnClick); items.Add(button); } ListView.AddRow(items); } }
public void AddDataInput1() { _listView.AddRow(dataInput1); Debug.Log("Adding to List " + _listView); }