I am attempting to draw a certain portion of the screen (scissor test) and I tumbled upon the viewportClippingEnabled property of a tk2dCamera.
I realized it did exactly what I was looking for, but I just can't seem to figure out how the Rect works.
I have a main tk2dCamera, that fits the screen entirely, which my clipping cam inherits from, but as I modify the X/Y/Width/Height value of my clipping cam, it modifies the viewport rect of my main cam too. I don't seem to grasp everything that goes behing the clipping cam and I can't seem to find documentation on this feature.
Could you enlighten me as of how it is supposed to work?