You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var buttonCollectionData = new ButtonCollectionCellModel();
for (var i = 0; i < 2; i++)
{
var index = i;
var collectionButtonData = new CollectionButtonModel();
collectionButtonData.Text = $"Collection Button {index}";
collectionButtonData.Clicked += () => Debug.Log($"Collection Button Clicked {index}");
buttonCollectionData.Buttons.Add(collectionButtonData);
}
AddButtonCollection(buttonCollectionData);
in the example code above, if you only add 2 buttons, the text becomes ""
if you add 3 buttons or more, then the text is displayed properly