I wanted it to allow hover events even while it is in the background.
Dual hover and dual click as in clickthrough to the background and the unity app would be great!
The unity asset on the asset store has dual hover with the way i scripted it: I set it to Window.clickthrough(true); every time !Application.isFocused; and it put it in a state that allowed hover to show in windows and the unity app.
I dont know code that well but his clicktrough function has a SetFocus function call that seems to be linked to these since I dont see it defined anywhere else:
static extern IntPtr FindWindowByCaption(IntPtr ZeroOnly, string lpWindowName);
[DllImport("user32.dll", EntryPoint = "SetFocus")]
public static extern bool SetFocus(int hWnd);
[DllImport("user32.dll", SetLastError = false)]
I wanted it to allow hover events even while it is in the background.
Dual hover and dual click as in clickthrough to the background and the unity app would be great!
The unity asset on the asset store has dual hover with the way i scripted it: I set it to Window.clickthrough(true); every time !Application.isFocused; and it put it in a state that allowed hover to show in windows and the unity app.
I dont know code that well but his clicktrough function has a SetFocus function call that seems to be linked to these since I dont see it defined anywhere else:
static extern IntPtr FindWindowByCaption(IntPtr ZeroOnly, string lpWindowName);
[DllImport("user32.dll", EntryPoint = "SetFocus")]
public static extern bool SetFocus(int hWnd);
[DllImport("user32.dll", SetLastError = false)]