dynamic text content binding isnt working with for loop

HyperGameDev
Wed, 22 May 2024 13:12:32 +0000
Programming & Scripting

I’m working on a code that binds text content to an array of buttons on the settings menu to improve the user interface. When users hover over each button, the infotitle is supposed to change accordingly. My goal is to make this process more efficient by using bindings, arrays, and loops.

However, I’m encountering an issue. As shown in the first image, the code is intended to update the infotitle text when hovering over each button. But as seen in the second and third images, the infotitle text only changes when hovering over the first button in the array. It doesn’t update correctly for the other buttons.

4 posts - 3 participants