I’m trying to look at an array of text and use that to determine how many buttons I need and what the text on the buttons say, but, so far, I can’t even create the buttons. They also need to be aligned on a Horizontal Layout.
void UpdateDialogue()
{
if (characterName.Equals("Questions"))
{
CreateNewQuestionObject();
}
}
void CreateNewQuestionObject()
{
question = (GameObject)Instantiate(Resources.Load("QuestionTemplate"));
question.transform.SetParent(questionPanel.transform);
}