Topic was automatically imported from the old Question2Answer platform.
Asked By
2plus2makes5
For turn based battles I was considering making something like this:
but in 3d, with smaller and transparent UI so that the scene can be seen underneath it, basically the 3d scene covers the entire screen and is only in part covered by the ui.
The problem is that the vanishing point(to put it simple the center of the perspective) isn’t at the center of the screen, is it possible to do the same in 3d?
Edit: It should be as simple as placing the ViewportContainer at the desired location, using anchors or margins, and putting the Viewport as its direct child.
I was alrady using Viewports, but you “forced” me to make more experiments and i found a solution, but not a good one in my opinion because it sounds very expensive, basically i make the Viewport larger than the screen and then i use it as a texture of a sprite with a region as big as the screen to show only the part of the viewport i’m interested.
If you have better solution i’m happy to hear, i tried using Viewport.canvas_transform but with no results.