- Messages
- 3
- Country

Hey,
I‘m currently building a (bubble) sextant simulator in Unity. So far I got accurate simulation of stars and the sun and you can take sights of those from any location and time on Earth. In my first few tests it was accurate to the minute.
I planned this to be kind of a companion app to MSFS, so you have to run it simultaneously to the sim and it’s not directly integrated. I think it’s much simpler to get a sextant simulated in Unity, then in MSFS. However, I’m stuck in getting SimConnect into my unity project. I‘ve seen a post here and searched the MSFS forums, but I didn’t managed to make it work and it seems nobody has. Unity always says type or namespace FlightSimulator doesn’t exist in the namespace Microsoft.
I tried to add the DLLs manually, upgrade Unity to .NET 4, used VS to compile everything. Nothing works.
So for now I‘m using a SimConnect Wrapper I found on GitHub, which saves SimVars into a JSON. I then read the Json from Unity. This works great, but in the long run I would like to integrate simconnect directly, or at least only run a helper in background which gets the simvars for me. The wrapper I found comes with a lot of DLLs and files and I want to keep it simple once I publish it, and I don’t want users to start multiple apps or dealing with a lot of files.
I tried to merge the wrapper into one exe, but the build always fails - I’m not experienced developing for windows sadly.
I only need the local sim time, date and longitude, latitude of the player.
Has anybody any idea how I could get SimConnect to run in unity? Or what other options might be?
Thanks!
Ps: that’s the wrapper I’m using: https://github.com/smairo/Smairo.MSFS2020.SimConnector
I‘m currently building a (bubble) sextant simulator in Unity. So far I got accurate simulation of stars and the sun and you can take sights of those from any location and time on Earth. In my first few tests it was accurate to the minute.
I planned this to be kind of a companion app to MSFS, so you have to run it simultaneously to the sim and it’s not directly integrated. I think it’s much simpler to get a sextant simulated in Unity, then in MSFS. However, I’m stuck in getting SimConnect into my unity project. I‘ve seen a post here and searched the MSFS forums, but I didn’t managed to make it work and it seems nobody has. Unity always says type or namespace FlightSimulator doesn’t exist in the namespace Microsoft.
I tried to add the DLLs manually, upgrade Unity to .NET 4, used VS to compile everything. Nothing works.
So for now I‘m using a SimConnect Wrapper I found on GitHub, which saves SimVars into a JSON. I then read the Json from Unity. This works great, but in the long run I would like to integrate simconnect directly, or at least only run a helper in background which gets the simvars for me. The wrapper I found comes with a lot of DLLs and files and I want to keep it simple once I publish it, and I don’t want users to start multiple apps or dealing with a lot of files.
I tried to merge the wrapper into one exe, but the build always fails - I’m not experienced developing for windows sadly.
I only need the local sim time, date and longitude, latitude of the player.
Has anybody any idea how I could get SimConnect to run in unity? Or what other options might be?
Thanks!
Ps: that’s the wrapper I’m using: https://github.com/smairo/Smairo.MSFS2020.SimConnector

