Skip to content

Commit

Permalink
Merge pull request #12994 from RaananW/xrOptionsTypings
Browse files Browse the repository at this point in the history
[XR] Fix typings for the options passed

Former-commit-id: fecc5134437c68f142084bb7026ae82071f4c54e
  • Loading branch information
sebavan authored Sep 19, 2022
2 parents c384322 + f0865c0 commit f7b619e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/dev/core/src/XR/webXRDefaultExperience.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,29 @@ export class WebXRDefaultExperienceOptions {
*/
public ignoreNativeCameraTransformation?: boolean;
/**
* Disable the controller mesh-loading. Can be used if you want to load your own meshes
* Optional configuration for the XR input object
*/
public inputOptions?: IWebXRInputOptions;
public inputOptions?: Partial<IWebXRInputOptions>;
/**
* optional configuration for pointer selection
*/
public pointerSelectionOptions?: IWebXRControllerPointerSelectionOptions;
public pointerSelectionOptions?: Partial<IWebXRControllerPointerSelectionOptions>;
/**
* optional configuration for near interaction
*/
public nearInteractionOptions?: IWebXRNearInteractionOptions;
public nearInteractionOptions?: Partial<IWebXRNearInteractionOptions>;
/**
* optional configuration for teleportation
*/
public teleportationOptions?: IWebXRTeleportationOptions;
public teleportationOptions?: Partial<IWebXRTeleportationOptions>;
/**
* optional configuration for the output canvas
*/
public outputCanvasOptions?: WebXRManagedOutputCanvasOptions;
/**
* optional UI options. This can be used among other to change session mode and reference space type
*/
public uiOptions?: WebXREnterExitUIOptions;
public uiOptions?: Partial<WebXREnterExitUIOptions>;
/**
* When loading teleportation and pointer select, use stable versions instead of latest.
*/
Expand All @@ -85,7 +85,7 @@ export class WebXRDefaultExperienceOptions {
* A list of optional features to init the session with
* If set to true, all features we support will be added
*/
optionalFeatures?: boolean | string[];
public optionalFeatures?: boolean | string[];
}

/**
Expand Down

0 comments on commit f7b619e

Please sign in to comment.