Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

[solved ]Is there a way to change the signaling URL to a script?

Discussion in 'Unity Render Streaming' started by chealin, May 27, 2022.

  1. chealin

    chealin

    Joined:
    Sep 10, 2017
    Posts:
    76
    Hello
    (unity : 2020.3.28f
    Rendstreaming: 3.1.0)


    I want to modify the signaling URL in real time on RenderStreaming.cs
    (Using Scripts)

    But it's tied up in a package, so even if you modify the script, it's restored to the original state

    How do I modify the Signaling URL with a script?

    Thank you for always answering my strange questions
     
  2. chealin

    chealin

    Joined:
    Sep 10, 2017
    Posts:
    76


    I solved it
    (You do not need to modify the package)

    Modified the distinction within the Start function on RenderPipelineSample.cs
    void Start()
    {
    if (!renderStreaming.runOnAwake)
    {
    RenderStreamingSettings.SignalingAddress = "MYURL";
    renderStreaming.Run(
    hardwareEncoder: RenderStreamingSettings.EnableHWCodec,
    signaling: RenderStreamingSettings.Signaling);
    }
    }

    --
    "signaling: RenderStreamingSettings.Signaling"
    This is where I set up the URL

    So, "RenderStreamingSettings.SignalingAddress"
    I modified the URL that I wanted to put in