Skip to content

Commit

Permalink
Merge pull request #13397 from RaananW/makeSureTeleportationMeshesAre…
Browse files Browse the repository at this point in the history
…Invisible

[XR] Hide teleportation mesh on creation
  • Loading branch information
sebavan committed Jan 3, 2023
2 parents 83eef24 + 3863156 commit 2345d24
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -794,6 +794,8 @@ export class WebXRMotionControllerTeleportation extends WebXRAbstractFeature {
}

this._options.teleportationTargetMesh = teleportationTarget;
// hide the teleportation target mesh right after creating it.
this._setTargetMeshVisibility(false);
}

private _detachController(xrControllerUniqueId: string) {
Expand Down

0 comments on commit 2345d24

Please sign in to comment.