Unity freezed running another application

Dear All,
I’m trying to run a different application from Unity scripting
I implemented a simple script that rotates the main camera around an axis. I run my application on a thread but when the focus is on the other application Unity is freezed, i.e. the main camera does not rotate. On the contrary if the focus is on Unity the main camera rotates correctly.

Is there a way to make Unity running normally even if the focus is not on it?

Best regards,
Gianni

Hi Gambr,

Not sure if this is what you’re after, but try this line:

Application.runInBackground = true

You can find more info on this setting here:

Again, I’m not sure this is what you’re after - I have limited experience with multi threading, but know the Unit API’s don’t support it…

Thanks, it works.