I want to take a screenshot and use it as a material texture for another object.
Script so far:
snapshot = texture; }
then im using
but this is just creating a gray texture instead of getting the screen image.
i forgot the texture.Apply(); after texture.ReadPixels. That solved it. I will leave the question here in case someone has the same problem.