i wanna edit VideoStreamSender.cs to change the low profile of default bitrate (seems only 300kbps).
But once i change the code and unity recompile it, the file restore to orignal version? the code is generated by other code?
How can I edit this?
Thank you!
The package downloaded from Unity Package Manager is managed by Unity Editor, so editing scripts in the package is not allowed.
If you want to edit scripts yourself, you need to copy the package to your local folder. See below.
that’s cool, i git clone the package, import from local, now i can edit the code now.
Thank you!
if i wanna fix the bitrate temporally, i can modity “VideoStreamSender.cs” @line50
encoding.maxBitrate = 1000000;
right?
The same issue is reported here. You can get more information.