In my game I want to be able to create a dynamic list of GUI text fields. The problem I am having is that when I run my application the debugger spams an out-of-range index exception message. The illustration below shows what I want to do with said list:
[29513-list+issues.png*|29513]
I would like to know what am I doing wrong? Here is my code sample:
for (var i = 0; i < gestures.Length; i++)
{
int x = i_UserRanking*;*
SceneManager.DrawTextField(GUIRectWindow, new Rect(40, textFieldPosition_Y, 20, 20), ref x, 1);
textFieldPosition_Y += 35;
}
*