Can you please tell me why the Hotspots disappear in the VR mode?
example
This is because of this code set(layer[icon].parent,hotspot[%1]); but why?
Code
<krpano version="1.19" title="Virtual Tour">
<include url="skin/vtourskin.xml" />
<preview type="grid(cube,64,64,256,0x77FF77,0x999999,0xFFFFFF);" details="10" />
<style name="hs" type="image" keep="true" url="Audio.png" width="50" height="prop" />
<hotspot name="hs_1" style="hs" ath="-20" atv="0" onclick="click_hs(sound_1);" />
<hotspot name="hs_2" style="hs" ath="0" atv="0" onclick="click_hs(sound_2);" />
<!-- onclick -->
<action name="click_hs">
set(name_hs, calc('' + name + ''));
if(webvr.isenabled,set(name_hs,get(vr_aclk_hotspot)););
playsound(sound,%1.mp3);
parent_hs(get(name_hs));
</action>
<action name="parent_hs">set(layer[icon].parent,hotspot[%1]);</action>
<plugin name="soundinterface_HS" url.html5="plugins/soundinterface.js" preload="true" rootpath="sound" volume="0.3" />
<!-- Icon -->
<layer name="icon" type="container" keep="true" width="10" height="10" bgcolor="0xFFFF00" bgalpha="1" y="-20" />
</krpano>
Display More