Have you seen this post ? It could be useful for you if you use CODESYS.
https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene