Hello, firstly I want to clarify that English is not my first language and I’m not sure to post in the right place, being new to this forum.
I am trying to select a line in a list (ScrollView) by clicking on it in order to apply an action on the selected line.
So I add a Toggle Component to the Prefab that is added to each line in order to activate it.
When I click on it, the hue changes according to the settings I specified and the state goes from Off to On.
So far so good.
But when I click elsewhere on the screen, the line is no longer selected because the hue returns to normal, but the state does not change.
And if I click on another line, same thing.
The new Line is selected and its status changes to On, but the previous line remains On.
I just want to be able to select an item from the list, then click another button outside this list to call an action on the selected item.
What is the right method?
Here is my Toggle Component settings :
Thank you in advance for your answers.
