Created
March 9, 2020 06:10
-
-
Save makihiro/111a2fa82cba9a38cfff103e32a3b42c 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
//L99-103 | |
if (navigator.xr) { | |
navigator.xr.isSessionSupported('immersive-ar') | |
.then((supported) => { | |
// XRデバイスが有効でimmersive-arがサポートされていれば、XRボタンを有効にする処理 | |
xrButton.enabled = supported; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment