Open Infinix31 opened 9 months ago
using UnityEngine;
namespace uWindowCapture {
public class UwcDesktopTextureManager : UwcWindowTextureManager
{
void Start()
{
UwcManager.onDesktopAdded.AddListener(OnWindowAdded);
UwcManager.onDesktopRemoved.AddListener(OnWindowRemoved);
foreach (var pair in UwcManager.windows)
{
OnWindowAdded(pair.Value);
}
}
void OnWindowAdded(UwcWindow window)
{
if (window.parentWindow != null) return; // handled by UwcWindowTextureChildrenManager
if (!window.isVisible || !window.isDesktop || window.isBackground) return;
window.RequestCapture();
AddWindowTexture(window);
}
void OnWindowRemoved(UwcWindow window)
{
RemoveWindowTexture(window);
}
}
} solve this by replacing UwcAltTabWindowTextureManager to this in horizontallayout scene.
same here,please reply if you solve this issue.thanks!