- Home /
Is it possible to run a REST server in Unity
Hi
I'm learning the basics of Unity programing. I'm a web/java developer myself and would like to help a 3d designer to setup a unity project where a web interface could interact with the unity scene. The idea is to have a html + JS web interface that can "command" a unity scene (e.g. show / hide obejcts, jump to another scene, ...).
So I thought it might be a good idea to run a REST server inside the unity project, and have the web interface make ajax calls to this API. I found a topic on this forum talking about Nancy, which seems to be a light web framework for C#. Would that be the best option ? If so, how can I set this up ?
Thank you.
Hi, @mhicauber ! I know it was time ago, but... Did you find something? I'm trying to do the same thing right now. Seems, I've dig through the half of all Internet and found nothing. Did you solve it?
Answer by mhicauber · Nov 19, 2018 at 01:28 PM
Hi
AFAIR I've set up a server loaded by an empty object on the first loaded scene. It worked, can't remember much more than that though... I'll try to find it / post it here asap.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
nor detecting the pixel of a given color 1 Answer
How do i check which object was instantiated last? 1 Answer
2D game Unity5 1 Answer