Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is there a way to change Bidirectional.html to unidirectional?

Discussion in 'Unity Render Streaming' started by chealin, Oct 7, 2022.

  1. chealin

    chealin

    Joined:
    Sep 10, 2017
    Posts:
    73
    hello
    I want to change Bidirectional.scene,Bidirectional.html to unidirectional.

    Originally I was going to use Broadcast.scene, but I had to create a program that assigns each ConnectID.
    Brodcase.scene couldn't change the ConnectID, so I tried to use Bidirectional.

    But Bidirectional.html is bidirectional
    I only need the ability to send to Unity -> Web

    So, I have completed the settings so that the Unity Editor can send in one direction (untiy -> web).

    But it's hard to fix html.
    If you comment out unnecessary functions, you will get an error in the html and you cannot run it.
    In Bidirectional.html, you don't need anything except Remote.

    If you know how to delete it without error, please let me know.

    [link i referenced]
    https://docs.unity3d.com/Packages/com.unity.renderstreaming@3.1/manual/customize-webapp.html

    thank you
     
  2. kannan-xiao4

    kannan-xiao4

    Unity Technologies

    Joined:
    Nov 5, 2020
    Posts:
    76
  3. chealin

    chealin

    Joined:
    Sep 10, 2017
    Posts:
    73



    hello

    I edit Broadcast.scene in Unity and
    I edit the code in the WebApp and it works the way I want it to.

    I almost did 2 rounds of tumbling after solving this, but I'm shy, so I endured it.
    thank you

    But I got a reference error while building the WebApp
    It was told to import renderstreaming.js from the module folder, but in the downloaded project (Github)
    There was no module folder.

    So, I put all the js I use first under the receiver/js folder and used it.
    I think it happened because I don't know Html well.

    Do you know where the module folder is?
     
  4. kannan-xiao4

    kannan-xiao4

    Unity Technologies

    Joined:
    Nov 5, 2020
    Posts:
    76
    WebApp client module folder is here.
    https://github.com/Unity-Technologies/UnityRenderStreaming/tree/develop/WebApp/client/src

    Could you try this build script?
    https://github.com/Unity-Technologies/UnityRenderStreaming/blob/develop/pack_webapp.sh