call python3 file from C#

Hi,
I have a python file that uses cvzone package to get webcam data and then send to unity. i have to run this python file first and then play unity game. is there any way i can call that python file when the game starts? i dont have to integrate the communication between c# and python as python file itself sending data to unity. This is what the python and unity do: Video

Thanks

On Windows/Desktop platforms you can use the Process class to start an external process. However you would need to bundle the Python library as you cannot rely on Python installed (and in the correct version) on a user‘s system.

2 Likes