Getting the render target/screen resolution
🖼️ Rendering•Updated 2 days ago•0 views
render.getResolution() returns the width and height of the screen - use it to compute e.g. a box at 50% of screen dimensions.
How to get the dimensions of the screen currently being rendered to
render.getResolution() returns the width and height of the screen - use it to compute e.g. a box at 50% of screen dimensions.