Created
March 9, 2020 06:11
-
-
Save makihiro/59f1cedc260553d64f0666b466298dbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//L107-113 | |
function onRequestSession() { | |
return navigator.xr.requestSession('immersive-ar', {requiredFeatures: ['local', 'hit-test']}) | |
.then((session) => { | |
// XRセッションを開始する処理 | |
// requiredFeaturesでhit-testを要求 | |
xrButton.setSession(session); | |
onSessionStarted(session); //onSessionStartedのコール | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment