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

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.