Hi,
create action to change the hotspot enabled and visible to true or false
<action name="action1">
set(hotpost[hotspotname].visible,true);
set(hotpost[hotspotname].enabled,true);
</action>
<action name="action2">
set(hotpost[hotspotname].visible,false);
set(hotpost[hotspotname].enabled,false);
</action>
to call those action when device is enter on VR Mode, go to vtourskin.xml find WebVR plugin, on that plugin, find onentervr and onexitvr and add the action you created earlier,
onentervr="skin_showloading(false); webvr_onentervr(); webvr_setup(); skin_reloadscene_webvr(); action1();"
onexitvr="webvr_onexitvr(); webvr_setup(); skin_reloadscene_webvr(); action2();"
This post has been edited 1 times, last edit by "Yanward" (Feb 28th 2017, 4:03am)