From 573b4295cfeeb14026cd6584611a4671f5da5be9 Mon Sep 17 00:00:00 2001 From: cptbtptpbcptdtptp Date: Fri, 19 Jul 2024 17:09:01 +0800 Subject: [PATCH] feat: update code --- packages/xr/src/XRManagerExtended.ts | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/packages/xr/src/XRManagerExtended.ts b/packages/xr/src/XRManagerExtended.ts index 88e0d1c312..e92a95e236 100644 --- a/packages/xr/src/XRManagerExtended.ts +++ b/packages/xr/src/XRManagerExtended.ts @@ -8,7 +8,7 @@ import { XRSessionManager } from "./session/XRSessionManager"; import { XRSessionMode } from "./session/XRSessionMode"; import { XRSessionState } from "./session/XRSessionState"; /** - * XRManager is the entry point of the XR system. + * @internal */ export class XRManagerExtended extends XRManager { /** @internal */ @@ -97,9 +97,6 @@ export class XRManagerExtended extends XRManager { }); } - /** - * @internal - */ override _initialize(engine: Engine, xrDevice: IXRDevice): void { this._platformDevice = xrDevice; this.sessionManager = new XRSessionManager(this, engine); @@ -107,9 +104,6 @@ export class XRManagerExtended extends XRManager { this.cameraManager = new XRCameraManager(this); } - /** - * @internal - */ override _update(): void { const { sessionManager } = this; if (sessionManager.state !== XRSessionState.Running) return; @@ -123,9 +117,6 @@ export class XRManagerExtended extends XRManager { } } - /** - * @internal - */ override _destroy(): void { if (this.sessionManager._platformSession) { this.exitXR().then(() => { @@ -140,23 +131,14 @@ export class XRManagerExtended extends XRManager { } } - /** - * @internal - */ override _getRequestAnimationFrame(): (callback: FrameRequestCallback) => number { return this.sessionManager._getRequestAnimationFrame(); } - /** - * @internal - */ override _getCancelAnimationFrame(): (id: number) => void { return this.sessionManager._getCancelAnimationFrame(); } - /** - * @internal - */ override _getCameraClearFlagsMask(type: CameraType): CameraClearFlags { return this.cameraManager._getCameraClearFlagsMask(type); }