Realtime file reading while ingame

Hello,
I am completely new to UE. I would love to use this engine for my project. I am developing my own positional tracking system for Oculus. Therefor there will be an outside application doing all calculations and determining cameras (head) position. I would love to ask how and if it is possible to make some tunnel to parse XYZ positions realtime (from my application) into the game while ingame (probably trough reading some text file)?
Thank you!!

What you want to do is called IPC (Inter-process communication - Wikipedia). I’d suggest one of the following two solutions:

  1. You can take a look at named pipes (basic OS functionality). They are usually implemented as file descriptors which allow writing to one side and reading from the other side. There should be a way to do this asynchronous easily.

  2. Another possibility may be to create a socket and transfer the data using TCP/UDP on the loopback interface 127.0.0.1.

I’d probably prefer the second one.

As far as I know, the data has to be imported before playing. So no real-time reading of a csv file is possible. Please correct me if I’m wrong :wink:

Oh thank you so much for this :slight_smile:
I would love to ask, when I am streaming data trough IPC, how can I catch them in unreal engine?
Thank you!