how would i increment var name of button and increment rectransform
foreach (BasePlayer bplayer in BasePlayer.allPlayerList)
{
var player_button = elements.Add(new CuiButton
{
Button =
{
Command = "",
Color = "0.8 0.8 0.8 0.2"
},
RectTransform =
{
AnchorMin = $"0.01 0.9",
AnchorMax = $"0.15 0.99"
},
Text =
{
Text = bplayer.displayName,
FontSize = 14,
Align = TextAnchor.MiddleCenter
}
}, panel);
}