#12176·pixijs

Feature Request: worldVisible

Author: UlyssesZhCreated Sep 3, 2026Updated Sep 3, 2026

Description

Need an API for getting whether a display object is world visible. There was previously worldVisible but it has been deleted in v8 (#11030). Currently I am using this patch in my project:

		Object.defineProperty(PIXI.Container.prototype, 'worldVisible', {
			get() {
				return this.visible && (!this.parent || this.parent.worldVisible) && (!this.parentRenderLayer || this.parentRenderLayer.worldVisible);
			},
			readonly: true
		});
		Object.defineProperty(PIXI.RenderLayer.prototype, 'worldVisible', {
			get() {
				return (!this.parent || this.parent.worldVisible) && (!this.parentRenderLayer || this.parentRenderLayer.worldVisible);
			},
			readonly: true
		});