how to judge my unity scene run in background?

Hi all:
I’m are creating a unity scene.It’s have a infor of anchor(Mouse clicked to open a window).But when my scene run in background,The infor anchor is still valid.But I need result is:when scene run in background ,The infor anchor will no valid .but i don’t know how to judge my program run in background(Judge of work done in-unity scene)

Thank all the people.:slight_smile:

438166–15221–$About_JudgeRunInBaceground01.unitypackage (47 KB)

in player setting,look “background”

明白不?

Thank you
but this Application.runInBackground is Invalid in IE7 and IE8,If this unity scene and other pages in the one IE window(but in a different tab),The operation of the other pages, will affect this unity pages.

438204--15231--$unity.jpg

Does OnApplicationFocus work for this?

Thank you
But,Because I using 2.6,then this OnApplicationFocus() is Still Invalid :frowning:

I have no way to this in unity 2.6?