'RenderTexture not updating each frame, when copying contents with CopyTexture()
Im trying to save 2d textures from a rendertexture using CopyTexture() to capture multiple angle of a 3dobject but for some reason its only returns multiple of the same image, as if its not updating each frame.
public Texture2D ReadPixels(Texture2D tex)
{
Graphics.CopyTexture(rt, tex);
return tex;
}
I know it should be working because it was working with SetPixels() but i changed to copyTexture for performance but now its not updating the rendertexture.
I have tried things like camera.render() tex.apply, rt.create(), RenderTexture.active = rt, rt.release. Seems like these are more for using readpixels.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
