RenderViewport
extends EngineObject
The RenderViewport class is used to access the relevant data of a single rendering viewport.
typescript
let viewport = Application.mainViewport;Instance Properties
RenderViewport.DPI : number |
| (Read Only) The dpi value of the current rendering viewport. |
RenderViewport.width : number |
| (Read Only) The width of the current rendering viewport. |
RenderViewport.height : number |
| (Read Only) The height of the current rendering viewport. |
RenderViewport.isRenderingCurrent : boolean |
| (Read Only) Determines if the current rendering viewport is rendering. |
RenderViewport.rendertarget : RenderTexture|null |
| (Read Only) Returns the render texture object of the current rendering viewport. |
RenderViewport.pixelScale : number |
| The pixel ratio of the current rendering viewport. |
RenderViewport.antiAliasingLevel : number |
| The anti-aliasing level of the current rendering viewport. |
