class WebXRView { public void ShowWebXRHUD() { // 不要なHUDを閉じてWebXRモードのHUDを表示 hsCanvasSetLayerShow( "hud_webxr", true); hsCanvasSetLayerShow( "HUD", false); hsCanvasSetLayerShow( "mainmenu_webxr", false); } public void ShowToastEnterWebXRMode() { // WebXRモード開始を知らせるトースト表示 LayerBundle layer = hsLayerGet("toast"); if(layer !== null) { layer.CallComponentMethod("ToastViewModel", "SetNoticeTime", "250,3500,250"); layer.CallComponentMethod("ToastViewModel", "NotifyMessage", "VRモードで起動しました。"); } } public void ShowNormalHUD() { // 不要なHUDを閉じて通常モードのHUDを表示 hsCanvasSetLayerShow( "HUD", true); hsCanvasSetLayerShow( "hud_webxr", false); hsCanvasSetLayerShow( "mainmenu_webxr", false); } public void ShowWebXRHelp() { // WebXR用のヘルプ表示 if(hsIsLangJA()) { hsCanvasSetGUIImage("mainmenu_setting_help", "config_guide","gui2024/menu/setting/help/webxr_howto.png"); } else { hsCanvasSetGUIImage("mainmenu_setting_help", "config_guide","gui2024/menu/setting/help/webxr_howto_en.png"); } } public void ShowNormalHelp() { // 元のヘルプ表示 if(hsIsLangJA()) { hsCanvasSetGUIImage("mainmenu_setting_help", "config_guide","gui2024/menu/setting/help/setting_help.png"); } else { hsCanvasSetGUIImage("mainmenu_setting_help", "config_guide","gui2024/menu/setting/help/setting_help_en.png"); } } // チュートリアルの表示 public void ShowWebXRTutorial() { hsCanvasSetLayerShow( "tutorial_webxr", true); } }