Hey, I have a GUILayout.Button that I use to print out buttons for each choice on my card class. The only issue I’ve been having is the last choice never appears on the GUI. I’m testing it with a test card, which I have arrays with 3 values assigned to them. If I remove the GUILayout.EndVertical all 3 buttons show up, but in the wrong position. What do I have to change to get all 3 buttons to appear on my GUI?
My Code
GUILayout.BeginArea(choicePosition);
GUILayout.BeginVertical();
for (int i = 0; i < currentCard.Choices.Length; i++)
{
GUILayout.Button(currentCard.Choices *+ " "*
+ currentCard.ChoiceText*);*
}
GUILayout.EndVertical();
GUILayout.EndArea();