Hello
I have to get screenshot images from custom unity project. Scene should generate dynamically by params sending through GET/POST request, then “server” should send response to client with screenshot or simply just save new images in some folder.
Some help please: docs or some examples.
TY
I don’t understand your question. If you’re using GET/POST requests, you’re talking about a web server. But you’re talking about a Unity build as a server. Please describe the purpose of the web server and the Unity build acting as a server, and maybe someone can point you in the right direction.
I use unity to create a synthetic data.
I send a scene parameters through http methods → game take a snapshot of scene → i taking 2 responses: 1)shapshot
2)some metadata
In order to do this you need an HTTP server running in your server-side Unity instance.
Depending on how complex is your application you could build a uber-basic HTTP server via this class HttpListener Class (System.Net) | Microsoft Learn or you may need something more robust such as this library: GitHub - unosquare/embedio: A tiny, cross-platform, module based web server for .NET
or even this one: http://nancyfx.org/