-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
ImageButton inside loop #6567
Copy link
Copy link
Closed
Labels
label/id and id stackimplicit identifiers, pushid(), id stackimplicit identifiers, pushid(), id stack
Description
In case there are Many ImageButtons inside loop, only the first one can be executed when clicked. Is this bug? If I change it to a normal Button , it works fine.
for(int i=0; i<10; i++ ) {
if(ImageButton()) {
cout << i;
}
}
First button works, prints 0. Other button does not work.
Maybe this is due to same texturID?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
label/id and id stackimplicit identifiers, pushid(), id stackimplicit identifiers, pushid(), id stack