UnityRenderStreaming
UnityRenderStreaming copied to clipboard
[BUG]: Can't assign main camera as a broadcast stream (impossible to reproduce "Creating The Scene" tutorial)
Package version
3.1.0-exp.7
Environment
* OS: 13.2.1
* Unity version: 2022.3.18f1
* Graphics API: Metal
* Browser: Google Chrome Version 119.0.6045.199 (Official Build) (arm64)
Steps To Reproduce
Setup according to official docs.
During the step "Assign the Video Stream Sender component to the Broadcast component property. And set camera" try to assign main camera as a stream for Broadcast component.
Current Behavior
The sream list element of Broadcast
component shows "type mismatch" after selecting the main camera (shows "Main Camera (Transform)" upon selection in the pop up list of scene components). Receiver example in web app does not shows anything.
Expected Behavior
Main camera should be assigned as "Main Camera (Video Stream Sender)" to the Streams element. Receiver example works as expected.
Anything else?
No response
I encountered the same issue, and it worked for me by dragging the "Video Stream Sender" component attached to the "Main Camera" instead of the "Main Camera" itself and adding it as an element to the Streams. I hope this proves helpful.
Thanks a lot, @t-34400. Your solution works for me as well. I still think that this is not an intended behaviour. Or is it? In the latter case docs has to be updated.