LogoPixi’VN
pixi-jsFunctions

Function: isRenderingToScreen()

> isRenderingToScreen(renderTarget): boolean

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/renderTarget/isRenderingToScreen.d.ts:9

Internal

Checks if the render target is viewable on the screen Basically, is it a canvas element and is that canvas element in the DOM

Parameters

renderTarget

RenderTarget

the render target to check

Returns

boolean

true if the render target is viewable on the screen