Variable: XRLayerState
constXRLayerState:Component<{cachedTransform: {default:any;type:Object; };fallbackMaterial: {default:any;type:Object; };isQuad: {default:true;type:Boolean; };mesh: {default:any;type:Object; };pixelHeight: {default:number;type:Int16; };pixelWidth: {default:number;type:Int16; };renderTarget: {default:any;type:Object; };stencil: {default:false;type:Boolean; };xrLayer: {default:any;type:Object; }; }>
Defined in: packages/core/src/layers/xr-layer-system.ts:60
Internal component storing per-entity runtime state for active XR layers. Attached by XRLayerSystem when an entity qualifies; removed on teardown. Keeping state in a component rather than system-side maps makes the system stateless with respect to entities, which improves HMR behavior and allows runtime MCP tools to inspect layer state.