If I create scripts for the OnWorldGetFocus and OnWorldLoseFocus events, the LoseFocus script is called once when I switch to something else just as expected.
When I switch back to the world, the Get Focus script is called, followed immediately by redundant calls to LoseFocus and GetFocus again.
The output from my sample scripts is as below:
Clicking away:
---------- World LoseFocus------------
Clicking back:
---------- World GetFocus------------
---------- World LoseFocus------------
---------- World GetFocus------------
When I switch back to the world, the Get Focus script is called, followed immediately by redundant calls to LoseFocus and GetFocus again.
The output from my sample scripts is as below:
Clicking away:
---------- World LoseFocus------------
Clicking back:
---------- World GetFocus------------
---------- World LoseFocus------------
---------- World GetFocus------------