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

I want to pass values from WebSocketSignaling.cs to my script

Discussion in 'Unity Render Streaming' started by chealin, Nov 24, 2022.

  1. chealin

    chealin

    Joined:
    Sep 10, 2017
    Posts:
    56
    hello

    I made a custom function to pass values from Nodejs to Unity, and the values arrived to Unity (WebSocketSignaling.cs).

    But I can't access to my Script.

    I want to pass values from WebSocketSignaling.cs to my script

    How can I access the function I created?


    [I succeeded in (1) to (2),
    but I couldn't get the process from (2) to (3) to work.]
    upload_2022-11-24_16-6-16.png
     
  2. chealin

    chealin

    Joined:
    Sep 10, 2017
    Posts:
    56

    I temporarily solved the problem

    I'm not passing values from WebSocketSignaling.cs to myscript.cs.

    I modified it by checking if the value was entered in myscript.cs