Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  8. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

animation on real time

Discussion in 'Animation' started by nasviasi, May 15, 2018.

  1. nasviasi

    nasviasi

    Joined:
    May 15, 2018
    Posts:
    3
    I need make animation under control of list of parametrs from TCP/IP or text file by doing refreshing text file.
    I am first time on Unity and I ask possible that I wrote this in Unity at all?
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    4,542
    yes, shouldn't be too difficult.
    (but really better do some tutorials first, it will help you get things done faster, https://unity3d.com/learn/tutorials )

    reading and parsing text file uses normal c# stuff, same for tcp/udp
    https://www.dotnetperls.com/file
    https://forum.unity.com/threads/c-tcp-ip-socket-how-to-receive-from-server.227259/#post-1513674

    there are also many ready made networking libraries to help,
    see few listed here https://forum.unity.com/threads/ben...dgren-miniudp-hazel-photon-and-others.512507/
     
  3. nasviasi

    nasviasi

    Joined:
    May 15, 2018
    Posts:
    3
    Thanks!
    Can I make in Unity that things:
    1. There in Unity object like Cube.position (... ... ...)
    Cube.color (... ... ...)
    Cube.rotation. (... ... ...) etc
    ...
    ...
    2. We are seen Cube on screen with (... ... ...)
    3. I put parametrs (... ... ... ) etc into Unity from text file (text file has generated from Python ...somthing else)
    4. Refresh parametrs (... ... ...)
    5. Cube on screen changes its position, color, rotation ... etc
    6. I am refreshing text fle with (... ... ...) by loop from Python by rewrite text file
    7. Cube on screen (magic!!!) moving ????
     
    Last edited: May 19, 2018
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    4,542
    yes that would work.

    with python its quite simple to send commands with tcp connection too,
    search for python tcp echo server, and how to connect/listen to tcp server with unity.
     
  5. nasviasi

    nasviasi

    Joined:
    May 15, 2018
    Posts:
    3
    Thanks!!!
    Can Unity make autonomous file (like *.exe, *.wrl ... ... *.html (?)) what can work on a computer without personally Unity, making animation on full screen (under external control I was ask early)?
     
  6. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    4,542
    yes, for windows can publish as an .exe or webgl (html)
    *but webgl version has limitations to filesystem, threading etc.

    for networking, also websocket works, there are easy websocket plugins to unity and for python. (to send messages)