- Home /
Take screenshot of pixels OUTSIDE the game window?
I'm wanting to create a program, not really a game, but a software that records parts of the screen for the user. I decided that I'd like to use shaders to help with the video processing, and since I'm "so good" at working with Unity shaders, I decided I'd like to make this entire program in Unity if possible.
I just need to know... can Unity actually access screen pixels outside the Unity window? Or is Unity totally closed up like a box and limited to only what is within the 4 walls of its own window? Thanks!
Hi, this doesn't really answer your question, but I'm working on an in-game screen whose purpose is to show the contents of another window. In order to do this, I'm using .NET and the Windows API to retrieve the screen pixels, which I then paint on the screen texture.
Unfortunately, I need a System.Drawing.Bitmap
of 4$$anonymous$$B, which Unity fails to allocate, throwing upon reaching the declaration. When tested outside of Unity, it is perfectly functional though. If you're still interested, I can send you my code.