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. Dismiss Notice

Question Socket receives information and cross script

Discussion in 'Scripting' started by h8476532, May 3, 2022.

  1. h8476532

    h8476532

    Joined:
    Mar 14, 2022
    Posts:
    17
    As the picture is shown below, I total send 6 information to unity, I use the socket to finish it.
    (Client = Unity, Server = visual studio 2017)

    Client:
    upload_2022-5-3_16-48-35.png

    Server:
    upload_2022-5-3_16-40-36.png

    Result:
    upload_2022-5-3_16-50-28.png

    Right now I want to use 1 of 6 information to write the new script, how can I do that? or what I need to preprocess with my code?

    Best regard,

    Tony
     
  2. nijnstein

    nijnstein

    Joined:
    Feb 6, 2021
    Posts:
    78
    Im sorry for being harsh; You wont find you answer by doing the same over and over while asking a question with no answer possible, we cannot know what you want to do with your data so nobody will be able to help you with your script and your topic really shows you dont know either. Seeing this is basic socket stuff sending data any programmer would understand, the progress you;ve made since your previous topic, it smells to me youre attempting to use something to cheat somehow in a network game.
     
  3. h8476532

    h8476532

    Joined:
    Mar 14, 2022
    Posts:
    17
    Sorry about my confused and unclear description, what I doing right now is about the digital twin for my robot arm, I need to send my robot six joints configuration to Unity and write the movement formula to move my robot joint to my real robot joint position, so it will be real-time when I move my real robot arm, then the socket will send the six joint configurations to Unity then I will use this information to move my robot arm.
    So right now I want some help with how to use I receive six joint configurations to write the new scripts to move the robot arm in Unity.
     
    Last edited: May 4, 2022