Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Can Unity capture and respond to external data?

Discussion in 'Editor & General Support' started by LTB, Jul 31, 2010.

  1. LTB

    LTB

    Joined:
    Jul 31, 2010
    Posts:
    3
    If I had data delivered to a computer by USB, can Unity capture this data and then use it to modify the game? For example, could the data captured be used to move an object, change data points, colors etc?

    Thanks in advance for any and all help!!
     
  2. ElectricAnt

    ElectricAnt

    Joined:
    Jul 13, 2010
    Posts:
    28
    Very vague question. What do you mean by delivering data via USB? You have a program running on a connected USB drive that Unity should connect with and get data from? Should a running Unity app constantly be checking for a drive X: to be installed and if so look for data in location X\data, etc, or what?

    Depending on your programming skill you can get Unity to do about anything you want.
     
  3. magwo

    magwo

    Joined:
    May 20, 2009
    Posts:
    402
    Short answer: Yes.
     
  4. LTB

    LTB

    Joined:
    Jul 31, 2010
    Posts:
    3
    It's a game for high schools.
    The data will come from a probe they are using that will send data to the computer and then Unity will use that data to change parameters in the game. Kind of a a real-time, real world feedback for the students.
     
  5. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Welcome to the forum, LTB!

    The Arduino has been used in several projects to interface with Unity (for example, this recent posting).
     
  6. LTB

    LTB

    Joined:
    Jul 31, 2010
    Posts:
    3
    andeee - thanks! Looks like we'll be able to do exactly what we had in mind.