Skip to main content
added 134 characters in body
Source Link
Trevor Powell
  • 21.5k
  • 1
  • 63
  • 96

That is correct: RenderTextures are not necessarily cleared after being released or reacquired.

According to the documentation:

You can not depend on any particular contents of the RenderTexture you get from GetTemporary function. It might be garbage, or it might be cleared to some color, depending on the platform.

You'llIf you want the RenderTexture to be cleared, then you'll need to  clear the render target explicitly, after gettingit yourself after acquiring it.

According to the documentation:

You can not depend on any particular contents of the RenderTexture you get from GetTemporary function. It might be garbage, or it might be cleared to some color, depending on the platform.

You'll need to  clear the render target explicitly, after getting it.

That is correct: RenderTextures are not necessarily cleared after being released or reacquired.

According to the documentation:

You can not depend on any particular contents of the RenderTexture you get from GetTemporary function. It might be garbage, or it might be cleared to some color, depending on the platform.

If you want the RenderTexture to be cleared, then you'll need to clear it yourself after acquiring it.

Source Link
Trevor Powell
  • 21.5k
  • 1
  • 63
  • 96

According to the documentation:

You can not depend on any particular contents of the RenderTexture you get from GetTemporary function. It might be garbage, or it might be cleared to some color, depending on the platform.

You'll need to clear the render target explicitly, after getting it.