Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    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:
    56
    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:
    56


    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