unity-game-enginecamerasimulationframevirtual

How do I get a byte[] of the camera frame in unity?


I am relatively new to Unity. I was wondering how I could get the byte[] frame of the virtual main camera in Unity.

I couldn't find any tutorials online?


Solution

  • You can use RenderTexture for this: