I have a Layer which has all decoration sprites + background.
Now I have some Sprites that I would like to draw in the middle (into a rectangular box — I am not sure can I name this rectangle as an inner “viewport”.), but if I put Sprites directly to the Layer they can go outside of the rectangle’s borders.
Is there a good way to make clipping for the Sprites (obviously, I can start perform the clipping of all sprites individually)?
Google does not produce a lot of results (at least it is hard to search without knowing the right keywords). From there I have got two things which I should look into: RenderTexture and Viewport clipping. There is also some discussion on screen separation (with viewports and use of visit pattern).
Does anyone have experience with that? Any suggestions? Thanks.