onExit

inline fun <T : Actor> T.onExit(crossinline listener: T.() -> Unit): InputListener

Attaches an ClickListener to this actor.

Return

ClickListener instance.

Parameters

listener

invoked each time the mouse cursor or finger touch is moved out of an actor. On desktop this will occur even when no mouse buttons are pressed. Consumes the Actor as this.