From 004921dddc55357583eb8417e36b95ba500b477c Mon Sep 17 00:00:00 2001 From: Will Eastcott Date: Tue, 12 Nov 2024 14:08:00 +0000 Subject: [PATCH] Fix TS errors --- src/components/camera-component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/camera-component.ts b/src/components/camera-component.ts index f339f12..065862e 100644 --- a/src/components/camera-component.ts +++ b/src/components/camera-component.ts @@ -1,4 +1,4 @@ -import { PROJECTION_ORTHOGRAPHIC, PROJECTION_PERSPECTIVE, CameraComponent, Color, Vec4, XRSPACE_LOCAL, XRTYPE_VR } from 'playcanvas'; +import { PROJECTION_ORTHOGRAPHIC, PROJECTION_PERSPECTIVE, CameraComponent, Color, Vec4, XRTYPE_VR } from 'playcanvas'; import { ComponentElement } from './component'; import { parseColor, parseVec4 } from '../utils'; @@ -71,7 +71,7 @@ class CameraComponentElement extends ComponentElement { return xrManager && xrManager.supported && xrManager.isAvailable(XRTYPE_VR); } - startXr(type: 'ar' | 'vr', space: 'bounded-floor' | 'local' | 'local-floor' | 'unbounded' | 'viewer') { + startXr(type: 'immersive-ar' | 'immersive-vr', space: 'bounded-floor' | 'local' | 'local-floor' | 'unbounded' | 'viewer') { if (this.component && this.xrAvailable) { this.component.startXr(type, space, { callback: (err: any) => {