I am trying to implement an application where a Unity scene will be hosted in a UWP XAML project (In a SwapchainPanel) and there should be communication between UWP and Unity. Basically using a XAML control (e.g Button) I need to control the object in Unity and also Unity should be able to send message to UWP also. So the communication should be bi-directional. Unfortunately, I could not find anyway to get this working.
I have tried to follow this sample, https://github.com/Unity-Technologies/DesktopSamples/tree/master/UniversalWindowsPlatformSamples/XAMLUnityConnection
But unfortunately, the sample is not working. I could not get it to work. Any help will be appreciated.
My Unity Version is 2021.3.15f1 Visual Studio Version is 2022