windowFocusChanged

abstract fun windowFocusChanged(hasFocus: Boolean)

Called when the window containing the Unity Player gains or loses focus.

Parameters

hasFocus

True if the window has gained focus, false if it has lost focus.