protected override async void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            await _controller?.RegisterAsync();

            _unityLibrary = new UnityProcess(@"UnityLibrary\UnityLibrary.exe", _splitContainer.Panel2.Handle);
            //_unityLibrary = new UnityDLL(@"UnityPlayer.dll", _splitContainer.Panel2.Handle);

            _splitContainer.Panel2.SizeChanged += (s, e) => _unityLibrary?.ResizeUnityWindow(_splitContainer.Panel2.Width, _splitContainer.Panel2.Height);
        }
Beispiel #2
0
 private async void Start()
 {
     await _controller?.RegisterAsync();
 }