Skip to content

Current RenderTexture.active value will be lost when using CameraExtensions.RenderToTexture #21

@borntocompile

Description

@borntocompile

In the ScreenshotUtils/CameraExtensions.cs class we set the RenderTexture.active to equal the newly created renderTexture and then set RenderTexture.active to equal null when we are done with it.
This will override the previously set RenderTexture.active value (if there is one).

We should store the current active render texture and assign it back after we are done with our temporary render texture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions