- Home /
UI issue when Streaming with 3DStreamingToolkit
Hi I am trying to stream a unity build (to a directX client for now).
The toolkit is based on using Camera.Render() and sending the rendertexture to the client for the stream.
I am able to get the mouse position and left and right clicks from the client back to the unity server build via .Json.
I am also able to override the UI input system for the client mouse inputs to be passed to the UI. (used this thread https://forum.unity.com/threads/fake-mouse-position-in-4-6-ui-answered.283748/ , kudos to all involved).
Note: I tested the input by having another camera active with another UI matching the first one but in screen space and it works: if I click a button the event is fired.
Since i want the UI to be part of the rendertexture i send to the client, i have had to set the canvas to screen space camera with the camera i call Render() on as event camera.
Now my Issue is that since the camera need to have the component Camera disabled to use Render(), the UI is not being rendered on the server and hence not getting the inputs from the client.
I have been stuck now for a couple of days trying to figure this out and any help would be greatly appreciated.
I hope I explained the issue properly, if not please let me know and I will try to be clearer.