a question about with Reorderablelist in game

I developing spelling word game with UI extension asset. when i drag and drop an object to another section, the answerCheck string not changing. I have to change it but i could not. do you know how can we do it? everything is ok about game. only I have this problem, then it will done.

void Update () {
        answerCheck = "";
        foreach (GameObject item in objects)
        {
            if (item.transform.childCount > 0)
            {
                answerCheck += item.transform.GetComponentInChildren<Text>().text;
            }
        }
}

Where and how are you updating your objects variable?

there are Text components inside each objects. the variable is List as GameObject. Now when i drag and drop any object to another section, answerCheck string will be change but it does not. So I wrote to Update method that maybe it works. When it equals to correctAnswer string, questionIndex will increase 1 and new question will come to panel

This does not answer my question.

Where and how are you updating your “objects” variable in code? The one from this line:

foreach (GameObject item in objects)

Maybe post full script here and I’ll find out myself :wink:

I will begin conversation with you.