M
M
madhowrad2021-11-26 11:05:38
Unity
madhowrad, 2021-11-26 11:05:38

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 question

Ask a Question

731 491 924 answers to any question