Search Unity

RenderTexture, pixelRect and rect actually do work, it seems

Discussion in 'Documentation' started by JibbSmart, Aug 12, 2016.

  1. JibbSmart

    JibbSmart

    Joined:
    Feb 18, 2013
    Posts:
    26
    According to the manual, cameras with their targetTexture set are not affected by their pixelRect or rect properties -- they automatically render into the whole texture.
    Thankfully, in my own quick test and according to others, it actually does work. Or maybe not.

    But it's working for me.

    Rendering into a portion of the texture is a useful feature, but the documentation says that feature isn't there. So, who's at fault? The documentation, or the engine? (Please say the documentation -- I really want to rely on this feature)

    Thanks.