Hi,
I have been struggling to get some hotspots to only show in VR.
I am using the below and they do not show on desktop, mobile, tablet and on the Oculus browser BEFORE clicking on 'Enter VR'. Which is correct.
But they are still not showing when 'entering VR'.
Code
<events name="hotspot_hide_non_vr" keep="true" onnewscene="hotspot_hide_non_vr();" />
<action name="hotspot_hide_non_vr" scope="local">
for(set(local.i,0), i LT hotspot.count, inc(i),
if(hotspot[get(i)].non_vr_hide,
if(device.desktop OR device.tablet OR device.mobile,
copy(hotspot[get(i)].visible_bak, hotspot[get(i)].visible);
set(hotspot[get(i)].visible, false);
, hotspot[get(i)].visible_bak !== null,
copy(hotspot[get(i)].visible, hotspot[get(i)].visible_bak);
delete(hotspot[get(i)].visible_bak);
);
);
);
</action>
<hotspot non_vr_hide="true" name="spotdown" style="floor_down" ath="0.000" atv="45.000"
onclick="loadscene(scene_Floor_7_Lobby_Hallway, null, KEEPLOOKAT, OPENBLEND(1.0, 0.0, 0.2, 0.0, linear));" />
Alles anzeigen
I know it's going to be something silly, but I've been staring at it for a while now and am lost. Thanks.