소스 검색

Examples: Added ids to ARButtom and VRButton.

Mr.doob 5 년 전
부모
커밋
5f4344d755
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      examples/jsm/webxr/ARButton.js
  2. 1 0
      examples/jsm/webxr/VRButton.js

+ 1 - 0
examples/jsm/webxr/ARButton.js

@@ -120,6 +120,7 @@ var ARButton = {
 		if ( 'xr' in navigator ) {
 
 			var button = document.createElement( 'button' );
+			button.id = 'ARButton';
 			button.style.display = 'none';
 
 			stylizeElement( button );

+ 1 - 0
examples/jsm/webxr/VRButton.js

@@ -127,6 +127,7 @@ var VRButton = {
 		if ( 'xr' in navigator ) {
 
 			var button = document.createElement( 'button' );
+			button.id = 'VRButton';
 			button.style.display = 'none';
 
 			stylizeElement( button );