VRモードのユーザーインターフェース
vr-mode-ui
コンポーネントは、Enter VR
ボタン、互換性モーダル、モバイル用 の方向性モーダルなどの UI を無効化することができます。vr-mode-ui コンポーネントは、<a-scene>
要素にのみ適用されます。単純にUIを切り替えたい場合は、代わりにCSSを使用します。
# 例
<a-scene vr-mode-ui="enabled: false"></a-scene>
# プロパティ
プロパティ | 概要 | デフォルト値 |
---|---|---|
enabled | VRに入るためのUIを表示するかどうか。 | true |
enterVRButton | カスタムVRボタンへのセレクタです。クリックするとVRに入るボタンになります。 | '' |
enterARButton | カスタムARボタンへのセレクタです。クリックするとARに入ります。 | '' |
# Specifying a Custom Enter VR Button
<a-scene
vr-mode-ui="enterVRButton: #myEnterVRButton; enterARButton: #myEnterARButton">
<!-- Style the button with images or whatever. -->
<a id="myEnterVRButton" href="#"></a>
<a id="myEnterARButton" href="#"></a>
</a-scene>