Skip to content

ImageButton inside loop #6567

@ParkSeungwon

Description

@ParkSeungwon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions