Answer the question
In order to leave comments, you need to log in
How to duplicate text in scroll view with code in unity?
How to duplicate text in scroll view with code in unity? in foreach?
here is the foreach code:
foreach (var lesson in lessons)
{
_teacherDropDwn.options.Add(new Dropdown.OptionData() { text = $"{lesson.Teacher} д{lesson.Day} у{lesson.LessonNumber} каб.{lesson.ClassRoom}" });
_teachersText.text = $"{lesson.Teacher} д{lesson.Day} у{lesson.LessonNumber} каб.{lesson.ClassRoom}\n";
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question