Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Triggering sensors using Unity C# or Python script

Discussion in 'External Tools' started by bhide012, Oct 23, 2019.

  1. bhide012

    bhide012

    Joined:
    Oct 23, 2019
    Posts:
    1
    Hello, I have 2 physiological sensors (one is USB connected and the other is bluetooth-connected to its proprietary software in the computer). I want to trigger both these sensors when the Unity program starts and stop them when I stop the Unity program. Any guidance is appreciated. What code should I put into Unity?
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    5,558
    if its easier to listen those devices from python, then you can use python sockets/tcp to send messages into unity.

    or if there is some c# library to listen those devices, those can be often used in unity (like in any c# project).