How to get an actor by name in libgdx?
I currently have the following ChangeListener:
ChangeListener colorPickerListener = new ChangeListener()
{
public void changed(ChangeEvent event, Actor actor)
{
toolboxStage.addActor(blockWindow);
Gdx.app.log("LevelEditorScreen", "Color Picker Selected");
Gdx.app.log("LevelEditorScreen", "HUD Width: " + HUD_WIDTH);
Gdx.input.setInputProcessor(toolboxStage);
}
};
The actor who is above is the actor who has been affected. Once this particular actor has been touched, I need to change the color of another actor. How exactly am I going to get this actor by his name?
source
share