- Home /
Clarification with Texture2D.ReadPixels.
Just want to clarify with ReadPixels. I have a plane with a few materials on its surface, and I want to use ReadPixels from a camera (hidden; doesn't show up on-screen) on this plane. Effectively, it'd give me a single image to match the plane.
Is this how to use it? And I wouldn't need Unity Pro? (Note: It's just a snapshot; not actually using it as a Render Texture like the Unity Pro feature.)
Answer by Eric5h5 · May 15, 2011 at 10:20 PM
No, if you don't read from a rendertexture, then you're reading from what's actually on the screen. Using a rendertexture is the only way to do that with a "hidden" camera.
I see. Thanks!
Though, I do wonder whether it might be possible to, during LateUpdate, switch the camera on to render, then switch it back off really quick before it's rendered?
No, in order to read pixels they have to be rendered to the screen. (Or a rendertexture.)
Your answer
Follow this Question
Related Questions
First Person Camera Distortion Problem 0 Answers
Create Material with gradient on a sphere? 2 Answers
Apply PNG as texture to 3d object 0 Answers
is it possible adding text in realtime using shadergraph? 0 Answers