Probably wrong thread, but...rendering an external exe to a texture?

This one may be a strange one, and it’s not exactly about an external tool, but wondering if anyone has any thought on how to do this. If I wanted Unity to run an external .exe and actually display it’s window as a texture in a Unity environment, would this be at all possible?

Thanks!

Yes it’s technically possible I suppose, but it’s a lot of work.

There are screen capture/recording/streaming programs out there that are able to capture a single window, for example OBS, which is open source so you can look at how they do it.

You’d then probably need a native plugin in Unity that you use to fetch the image.