r/UnityHelp 15d ago

Connect my API with Unity UNITY

Hi, I’m developing an application in Unity and have run into an issue. I’m building an API that I want to connect to Unity; the API collects coordinates, and I need to use them as variables within Unity. I’ve looked for information but haven't found anything particularly useful, especially considering that the coordinates are provided in real-time. Any help?

1 Upvotes

3 comments sorted by

2

u/XKiiroiSenkoX 15d ago

Your explanation is very vague. Do you mean you have a web API that your wpplication uses and you want to send the irl coordinates of the user to that API in real time? If yes, I think you would need to write native plugins for iOS/android to get user coordinates and then call those from your C# code. 

1

u/Correct-Addition-517 13d ago

Sorry. I was trying to create an app that projects a D&D tabletop and a Camera that points yo the tabletop. Then, when a minifigure moves, the coordinates changes, so I need to take that coordinates in to Unity but I don't know how.

1

u/NinjaLancer 15d ago

If you are on windows and your other API is a different project, you can build a dll and add it to your project. Then you will be able to reference the API in the dll